php function execute - connection between php and C++ serverbased -
i working on project, have build webpage, info user , convert tree.
to create run faster, phone call selfwrote c++ programm php, sent needed informations json.
on laptop have apache installed , on localhost working fine.
now moved files on server , doesn't work anymore. think has connection between php , c++ execute.
has thought how can test clearly, error is? because function phone call c++ programme seems enabled on server.
the code phone call c++ programm:
$mode = $_post['mode']; $val = ""; if ($mode == "f") { $sequencelist = $_post['sequencelist']; $family = $_post['family']; if ($sequencelist == "") { echo "error - no sequences added"; } else if ($family == "") { echo "error - no family added"; } else { exec("treedom.exe {$mode} {$sequencelist} {$family}", $output; foreach($output $line) { $val=$line; } echo $val; } }
thank you!
if server in shared hosting (generic low-cost domain solution), exec
function may not work due php safe mode. take @ this question more insights.
it can permission issue.
php c++
No comments:
Post a Comment