Actually this is a local script, using php-cgi. Im using php here as a "shell scripting" since im never working on windows and that the scripting under windows is just a pain.
Im using php here to connect to a server via ftp, if a new file has been uploaded, compare it, if different from last downloaded file, download it, stop the server, update application, restart server.
And it works, i just did exec('net start blipserver', $output, $return_var);
I know this wouldnt work for a web application, I forgot to precise i was using php in this case more as a shell script!