Page 1 of 1

PHP exec() in win 2008 R2

PostPosted: 30. November 2010 14:04
by Horizak
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

Re: PHP exec() in win 2008 R2

PostPosted: 30. November 2010 15:57
by Altrea
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.

Re: PHP exec() in win 2008 R2

PostPosted: 30. November 2010 16:03
by Horizak
My xampp are installed in root of hard disk, equal in all systens, only in win 2008 R2 exec(); dont work!

Re: PHP exec() in win 2008 R2

PostPosted: 30. November 2010 16:05
by Altrea
Do you have put on error_reporting?
What is the return_var of exec()?

Re: PHP exec() in win 2008 R2

PostPosted: 30. November 2010 16:21
by Altrea
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.

Re: PHP exec() in win 2008 R2

PostPosted: 03. December 2010 10:48
by Horizak
thanks for reply

I have apache and mysql as a service and UAC off

I tried other exe on diferent folders and dont run :/