php code not executing in windows server 2008 r2

Problems with the Windows version of XAMPP, questions, comments, and anything related.

php code not executing in windows server 2008 r2

Postby Antonio Trigo » 07. December 2010 11:49

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.
Antonio Trigo
 
Posts: 2
Joined: 07. December 2010 11:37

Re: php code not executing in windows server 2008 r2

Postby Altrea » 07. December 2010 12:01

maybe this article @ stackoverflow can help but without guarantee
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: php code not executing in windows server 2008 r2

Postby Antonio Trigo » 07. December 2010 15:47

Tanks for reply, but we´ve tried that allready and it returns no error at all. nothing.
Antonio Trigo
 
Posts: 2
Joined: 07. December 2010 11:37


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 133 guests