Re: Windows ENV['_'] equivalent

From: Date: Mon, 16 Oct 2006 20:21:42 +0000
Subject: Re: Windows ENV['_'] equivalent
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-243220@lists.php.net to get a copy of this message
On Mon, October 16, 2006 4:41 pm, Roman Neuhauser wrote: > Just a thought: var_dump(ini_get('register_argc_argv')) ? I should have been more clear If/when there are any $args, then $argc/$argv are set: $ /cygdrive/c/php5.1.1/php.exe -q argv.php array(1) { [0]=> string(8) "argv.php" } C:\Documents and Settings\rlynch>c:\php5.1.1\php.exe -q K:\pizzahut\argv.php array(1) { [0]=> string(20) "K:\pizzahut\argv.php" } But $argv does not contain the path of the binary PHP running -- it has everything AFTER that in the command line. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#243220) next »