Problem with Exec() on windows server.

Hey there, I am having some problems using Exec to start a program on a Windows Server 2003 dedicated server. I am moving an existing website and additional programs to this server from a VPS server with the same OS where it has been working fine.

The snippet of the PHP code which starts the .exe is as follows:
[php]
$executable = “C:\inetpub\vhosts\xtremeidiots.com\echlon\BanButton.BotControl.exe”;
exec(“start “.$executable.” refresh”);
[/php]

I can start C:\Windows\System32\calc.exe using exec on the new server with code similar to the above. I have granted permissions to the IIS guest user account for the BanButton.BotControl.exe to be identical to the calc.exe.

My question is does anyone know how to get this working or some possible troubleshooting avenues without changing any of the existing technologies.

Regards, Sitting-Duc.

Sponsor our Newsletter | Privacy Policy | Terms of Service