Re: Win2k3 - IIS 6.0 - PHP5 - EXEC Function - Stopping/starting a Service

From: Date: Tue, 25 Oct 2005 09:07:32 +0000
Subject: Re: Win2k3 - IIS 6.0 - PHP5 - EXEC Function - Stopping/starting a Service
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-26432@lists.php.net to get a copy of this message
it should have quotes before the 'net' and after 'servicename' <?php exec("net stop servicename"); ?> also, if php's safe_mode is on, you can only run programs in the safe_mode_exec_dir folder, which would need to be 'C:/WINDOWS/system32' if you are using the net command. Jayvd wrote:
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/ =-


« previous php.windows (#26432) next »