Win2k3 - IIS 6.0 - PHP5 - EXEC Function - Stopping/starting a Service
| From: | Jayvd | Date: | Sat, 22 Oct 2005 23:40:46 +0000 |
| Subject: | Win2k3 - IIS 6.0 - PHP5 - EXEC Function - Stopping/starting a Service | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26423@lists.php.net to get a copy of this message | ||
I'm trying to start and stop a service with PHP.
I've given cmd.exe the right permissions (so IIS can execute etc.) but it still doesn't
work.
The script I use:
<?php
exec(net stop SERVICENAME);
?>
Does anyone know how to solve this problem?
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-