-2
可执行文件使用2个未管理的dll &在控制台上给出输出。 我正在XAMPP/localhost上运行它(在我的PC上)&用PHP的Exec()/ PassThru()函数获取控制台输出。如何在Linux/Apache Web托管上运行win32控制台应用程序?
它在基于Apache/Linux的Web托管帐户上运行方式是否相同?如果不是,我该怎么办?
在PHP:
<?php
exec("TradeLogin.exe",$output);
//TradeLogin.exe is the win32-console-app,
//situated at Xampp/htdocs, with couple of supporting binary files & dlls
//(compiled on Visual-Studio-2015)
echo $output[0]."<br/>";
echo $output[1]."<br/>";
?>
为什么你期望Windows可执行文件在Linux上运行? –