[英]Debug exec() PHP: “sh: *.exe : cannot execute binary file”
I have a problem with exec(*.exe ... 2>&1, $out)
in PHP. 我在PHP中遇到exec(*.exe ... 2>&1, $out)
问题。 It ran perfectly in Localhost But when I upload hosting Linux, An error happen: "sh: *.exe : cannot execute binary file"
. 它可以在Localhost上完美运行,但是当我上传主机Linux时,发生错误: "sh: *.exe : cannot execute binary file"
。 What did I do: - php.ini checked : ;disable_functions = mai,system,passthru,shell_exec, *...
; 我该怎么办:-php.ini检查: ;disable_functions = mai,system,passthru,shell_exec, *...
; - run perfectly in Localhost; -在Localhost中完美运行; ( echo $out
,...) - check PATH ( full Path); ( echo $out
,...)-检查PATH(完整路径); Please help me ... 请帮我 ...
exe ist a Windows File. 执行Windows文件。 You cannot execute an .exe File on Linux. 您不能在Linux上执行.exe文件。 This is only possible on Windows. 这仅适用于Windows。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.