Re: exec in different directory where PHP is Installed

From: Date: Tue, 25 May 2010 07:44:32 +0000
Subject: Re: exec in different directory where PHP is Installed
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-305502@lists.php.net to get a copy of this message
I have a begin of explanation When PHP is run as CGI it's work but with this header message : '\\xxx.xxx.xxx.xxx\scriptdir' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. Status: 200 OK X-Powered-By: PHP/5.2.8 Content-type: text/html @exec function work well Now when PHP is run as a FAST-CGI then it's not work at ALL (ie: just the @exec function not work, the other work ok!) is it a normal behavior ? thanks you by advance stephane On 5/24/2010 11:42 PM, Bob McConnell wrote:
From: loki
On 5/24/2010 11:31 PM, Bob McConnell wrote:
From: loki
PHP is installed in c:\program files\php the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ in the PHP script, we try to launch the command @exec(...) with a executable located in c:\program files\ourexecutable\ it's not work :( but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\ to c:\scriptdir\ then it's work !! everything work good EXCEPT the @EXEC command ...
Is 'C:\Program Files\PHP' in your PATH? You may need to add that manually.
no ? but why i would need to add C:\Program Files\PHP in my path ? why it's explain that it's work when the php script are located in any
directory under c: and not under \\xxx.xxx.xxx.xxx\scriptdir\ ??
What is the exact error message you get when it doesn't work? Bob McConnell


« previous php.general (#305502) next »