[prev in list] [next in list] [prev in thread] [next in thread]
List: php-windows
Subject: [PHP-WIN] Problem with execution external script
From: 151.46.171.178
Date: 2006-09-07 20:57:23
Message-ID: D6.14.14476.5D880054 () pb1 ! pair ! com
[Download RAW message or body]
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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic