Re: Windows ENV['_'] equivalent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux