Home >Backend Development >PHP Tutorial > 调用popen执行程序时,返回异常

调用popen执行程序时,返回异常

WBOY
WBOYOriginal
2016-06-13 13:14:491804browse

调用popen执行程序时,返回错误
服务器端执行popen('start xxx.exe', 'r');
返回错误:
Warning: popen(start xxx.exe, r) [function.popen]: No error in E:\xxx\test.php on line 4

查了很多资料,没有解决,期待大牛的答案

这个功能我在开发电脑上调试已经可以了,部署到服务器上出现了问题
开发电脑是:XP + Apache + PHP
服务器是:winserver2003 + IIS + PHP



------解决方案--------------------
IIS默认的权限不够,你改为可脚本和可执行文件,iis->站点属性->主目录->执行权限
------解决方案--------------------
贴出全部代码瞧瞧 $file = popen("/bin/ls","r");

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn