如何运行“.exe”文件抛出我的 PHP 类?或者有没有其他方法可以做到这一点?
我已经用过
exec();
passthru();
功能,但它给我错误,我的代码:
$path = "C:\Program Files\Softland\doPDF 7\dopdf.exe";
$result = passthru('$path 2>&1');
错误 :
'$path' is not recognized as an internal or external command, operable program or batch file.