hi, i'm trying to execute some c++ code from the php script in my webpage, but its not working. the best i could find was the php code below.
$output = shell_exec('ls -lart program.exe');
echo "<pre>$output</pre>";
here is the code of program.exe (codewarrior created program.exe from this code)
using namespace std;
int main()
{
return 7;
}
when i run this the screen just says some data, like date and my host server and the program, but does not exectute the program.
i was trying to get it such that when i run the page this php script is on it says 7. thanks.