Does anyone know how to start a service in windows via php webpage.
The error message I get is
SMAUG 1.4a
Unable to talk to the Service Control Manager
Error 5
Access is denied.
And the code I am trying is
<?
$command = "C:\windows\php\smaug.exe /start 2>&1";
exec($command, $output);
foreach($output as $outputline){
echo("$outputline<br>");
}?>
I copied cmd.exe and smaug.exe to my php directory and tested that smaug would be able to modify the service from that directory, but I can't get it to work.