2006-10-13 bailing
手册上有说明

shell_exec函数下面的解说

Got the error "Unable to execute..." when trying to run an external program with shell_exec under Windows XP, 
IIS 5, php 4.3.7  Solved by giving the IIS user (IUSR_...) execution privileges on the system file 
%systemroot%\system32\cmd.exe  This should be used carefully because may represent a server's security hole. 

给cmd.exe赋予IUSER_.......用户可以读运行的权限,问题解决。

赋予权限
cacls c:\windows\system32\cmd.exe  /e /c /p IUSER_.....:r
撤销权限
cacls c:\windows\system32\cmd.exe  /e /c /r IUSER_.....
Posted on 2006-11-07 15:36  古代  阅读(1845)  评论(0编辑  收藏  举报