Hi,
I am trying to use the exec function via PHP code to execute a dos executable. Its working fine when i run the exact same code on Windows XP but there is no output on Windows 2008 server. Also, there is no error. The code looks something like:
exec('testbatch.bat");
I am using WAMP on Windows 2008. Strangely, there is no error or anything else in the apache log either. What could be the problem ? Is it a permission issue specific to Windows 2008 (exact same code works on Win Xp) ?
Please help!
Chetan
exec not working on Windows 2008
Moderator: General Moderators
Re: exec not working on Windows 2008
Server 2008 is really finicky with permissions, you should verify that you are running as administrator and that UAC is turned off.
Re: exec not working on Windows 2008
thanks for your response s992.
what is UAC and how can i check if its turned off ?
what is UAC and how can i check if its turned off ?
Re: exec not working on Windows 2008
UAC is the bane of all things good and holy.
I found this article to be a good resource for explaining what UAC is and how to turn it off.
I found this article to be a good resource for explaining what UAC is and how to turn it off.