问题描述:

I'm trying to use a C++ executable program via Php command line by my Linux web server.

I've done it successfully in windows server by this code :

<?php

echo "<hr>";

system("ConsoleApplication.exe");

echo"<hr>";

?>

and all outputs by the external program appears on the page but in the Linux server I tried

system("ConsoleApplication.exe");

system("./ConsoleApplication.exe");

exec(), passthru() and .......

but none of them works, what am I doing wrong ?

thanks

相关阅读:
Top