Problem with execution external script
| From: | DevPhp | Date: | Thu, 07 Sep 2006 20:57:23 +0000 |
| Subject: | Problem with execution external script | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-27129@lists.php.net to get a copy of this message | ||
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