Re: argv and argc [Was: [PHP-DEV] PHP 4.0 Bug #7657]
| From: | Andrei Zmievski | Date: | Mon, 06 Nov 2000 14:19:59 +0000 |
| Subject: | Re: argv and argc [Was: [PHP-DEV] PHP 4.0 Bug #7657] | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37269@lists.php.net to get a copy of this message | ||
On Mon, 06 Nov 2000, Stanislav Malyshev wrote:
> >> when using the cgi version of php as a command line script processor
> >> it does no longer transfer command line arguments into the $argv
> >> array
>
> OK, this was fixed in CVS, but the following question remians:
>
> Should be $argv[0] set to the name of the script? Now, in command-line
> mode it is, in CGI mode it is not. This seems inconsitent. What you pepole
> think about this? Should $argv[0] be always name of the script or should
> this be left alone?
I think $argv[0] should always be the name of the script.
-Andrei
* It said 'Winmodem' on the box, but I still feel like I lost. *