exec not working on Windows 2008
Posted: Tue Nov 16, 2010 8:12 am
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
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