PHP exec() in win 2008 R2

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

PHP exec() in win 2008 R2

Postby Horizak » 30. November 2010 14:04

this code
exec('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"');

works fine in xampp instaled on win 7 x64, win 2008, but on win 2008 R2 dont work, i think donta have permission, how i can resolve that?

Thanks
Horizak
 
Posts: 3
Joined: 30. November 2010 14:00

Re: PHP exec() in win 2008 R2

Postby Altrea » 30. November 2010 15:57

i will not help users anymore who ignore the recommandation to install xampp in the root of a harddisc (or a subfolder of that without any whitespaces and special chars)

Maybe you want to reinstall xampp or someone else want to help you to get rid of unexpected software behavior.
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: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP exec() in win 2008 R2

Postby Horizak » 30. November 2010 16:03

My xampp are installed in root of hard disk, equal in all systens, only in win 2008 R2 exec(); dont work!
Horizak
 
Posts: 3
Joined: 30. November 2010 14:00

Re: PHP exec() in win 2008 R2

Postby Altrea » 30. November 2010 16:05

Do you have put on error_reporting?
What is the return_var of exec()?
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: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP exec() in win 2008 R2

Postby Altrea » 30. November 2010 16:21

Do you run the xampp components as administrator (rightclick option) or have you turned of the uac? Maybe this is just a permission issue. Can you try to execute a different exe not lying in your program files folder?

btw: do you escape your path with escapeshellcmd()? Maybe Windows Server 2008 R2 does have problems with the path where windows 7 64bit doesn't have.
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: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP exec() in win 2008 R2

Postby Horizak » 03. December 2010 10:48

thanks for reply

I have apache and mysql as a service and UAC off

I tried other exe on diferent folders and dont run :/
Horizak
 
Posts: 3
Joined: 30. November 2010 14:00


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests