-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上運行? –