Hello, i have this simple php code to execute a .bat file, and it works fine on win7 x64, win xp, win 2008, win vista but on win2008 R2 nothing happens, everything is set the same way in all SO´s but in 2008R2 it just doesen´t work. Does someone have any idea on overcomming this problem??
The code is this:
<?php
exec('C:\lol.bat');
?>
And the .bat file is this:
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -saveimage http://www.mozilla.com/en-US/ -width 800
The bat works fine if i execute it myself but nothing happens if the index.php with the code call it.
Xampp is instaled in root drive c:\xammp.
Apache is running as local service.
Anyone have a clue why this happens??
Thanks in advance.