当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - Executing external programs via php in linux server

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: