Re: Problem with execution external script
| From: | Alex Turner | Date: | Fri, 08 Sep 2006 10:58:40 +0000 |
| Subject: | Re: Problem with execution external script | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27132@lists.php.net to get a copy of this message | ||
DevPhp wrote:
Hi, I've a problem with php and the execution of an external script. The script is adutil.vbs , belonging to the IIS administration Script on windows 2000 server. The vbs have to be execute with Cscript.exe. When I execute it from Dos shell there's no problems: for examples c:\Cscript adsutil.vbs But when I try to execute it from a php web page, using exec or system, directly or calling a C script, I've this error : Error Cscript: error loading...Access denied Example of direct execution from a php web page: <? echo system('%SYSTEMROOT%/system327cscript.exe adsutil.vbs'); ?> Example of execution calling a C script <? echo system('run_adsutil.exe'); //run_adsutil.exe is a C program that run the vbs with system() ?> Any Ideas? Anyone can help me? Thanks Bye I guess that your server is running as a user with reduced permissions and thus cannot access the exec.Also - why double launch? Why not launch csript directly? Cheers AJ -- www.deployview.com www.nerds-central.com www.project-network.com