Jump to content

Exec doesnt start windows service


ierpe

Recommended Posts

Hi,

 

I need to stop/start a service with a php script (on windows xp)

 

The commands I have to execute are "net stop blipserver" and "net start blipserver". It works in a command window.

 

im doing exec( 'net stop blipserver' , $output , $return_var);

but it doesnt do anything, I dont get any error, but the service is actually not stopped. $return_var is 1, although I don't know what 1 means for a service start, if it was successful or not...

 

I put "net stop blipserver" into a bat file that im calling via exec('blipstop.bat'); But logically it doesn't work either.

Any idea whats wrong? I guess its some sort of permission problem, but where..? Can't really find anything on google about starting services...

 

Please help!

 

Regards,

P.

Link to comment
https://forums.phpfreaks.com/topic/151377-exec-doesnt-start-windows-service/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.