Page 1 of 1

php code not executing in windows server 2008 r2

PostPosted: 07. December 2010 11:49
by Antonio Trigo
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.

Re: php code not executing in windows server 2008 r2

PostPosted: 07. December 2010 12:01
by Altrea
maybe this article @ stackoverflow can help but without guarantee

Re: php code not executing in windows server 2008 r2

PostPosted: 07. December 2010 15:47
by Antonio Trigo
Tanks for reply, but we´ve tried that allready and it returns no error at all. nothing.