Re: [PHP] exec in different directory where PHP is Installed
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exec in different directory where PHP is Installed
Hello, 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 ... Safe mode in PHP is OFF ... Thanks by advance for you help stephane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exec in different directory where PHP is Installed
the script is vbulletin function fetch_im_exec($command, $args, $needoutput = false, $dieongs = true) { if (!function_exists('exec')) { $this-error = array(fetch_error('php_error_exec_disabled')); return false; } $imcommands = array( 'identify' = $this-identifypath, 'convert' = $this-convertpath, ); $input = $imcommands[$command] . ' ' . $args . ' 21'; if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' AND PHP_VERSION '5.3.0') { $input = '' . $input . ''; } $exec = @exec($input, $output, $this-returnvalue); when i put the script in \\xxx.xxx.xxx.xxx\scriptdir\ the result is empty when i put the script everywhere in the c: then the result is good ! in both case $input is the same and point to c:\program files\im\identify.exe i use php 5.2.8 on windows thanks by advance stephane On 5/24/2010 11:11 PM, Kevin Kinsey wrote: loki wrote: Hello, 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 ... Safe mode in PHP is OFF ... Hello, Can you show us the script? The first thing I'd do is call is_file(\\xxx.xxx.xxx.xxx\scriptdir\foo.php) ... are you doing that? Kevin Kinsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exec in different directory where PHP is Installed
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. Bob McConnell 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\ ?? thanks by advance stephane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Bug in php-cgi.exe
Hello, i thing i found a bug in PHP-cgi.exe I use Php-cgi as fastCgi php-cgi.exe -b host:port i set in environement variables this : PHP_FCGI_CHILDREN=8 PHP_FCGI_MAX_REQUESTS=1000 in the task manager i see only one Php-cgi.exe process (when normaly i must see 9 process no?) and after i send more than 1000 request the php-cgi.exe process died ! and i must manually restart it! Thanks you by advance for you help -- stephane Http://www.arkadia.com/fra/ Http://www.arkadia.com/usa/ Http://www.arkadia.com/rus/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] VC9 x86 Non Thread Safe or VC9 x86 Thread Safe ?
Hello, We use Php-cgi.exe as FastCGI with our own custom WebServer on Windows Server What to choose, VC9 x86 Non Thread Safe or VC9 x86 Thread Safe ? We have these enviroment variable : PHP_FCGI_CHILDREN: 8 Thanks you by advance stephane -- Http://www.arkadia.com/fra/ Http://www.arkadia.com/usa/ Http://www.arkadia.com/rus/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] need sample of code for Fast-CGI with php
hello, if someone have sample of code (C#, C++, delphi, etc.) to call php from an custom application (custom web server for exemple) throught fast-cgi ? thanks you by advance -- stephane Http://www.arkadia.com/fra/location-vacances/ http://www.arkadia.com/fra/immobilier/vente/france/provence-alpes-cote-d-azur/alpes-maritimes/nice/ http://www.arkadia.com/fra/location-vacances/france/provence-alpes-cote-d-azur/alpes-maritimes/nice/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 64 bit binary ?
no Daniel Brown danbr...@php.net wrote in message news:ab5568160907051350x530f4efbw96ffc356c15...@mail.gmail.com... On Sun, Jul 5, 2009 at 15:43, lokiloki5100-newsgr...@yahoo.fr wrote: Hello Is it plane to release 64 bit binary for php on windows ? Pierre? -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at http://twitter.com/pilotpig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 64 bit binary ?
Hello Is it plane to release 64 bit binary for php on windows ? -- Stéphane Http://www.arkadia.com/fra/ Http://www.arkadia.com/usa/ Http://www.arkadia.com/rus/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php