note 22708 deleted from features.commandline by nlopess
| From: | nlopess@php.net | Date: | Sun, 15 May 2005 16:33:12 +0000 |
| Subject: | note 22708 deleted from features.commandline by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89461@lists.php.net to get a copy of this message | ||
Note Submitter: vboctor at hotmail dot com
----
You will only be able to use $argc and $argv if you have in php.ini:
register_globals = On
register_argc_argv = On
If you have register_globals = Off, then you should use $_SERVER['argc'] and
$_SERVER['argv'][0]. (recommended approach)
Also for some reason php "-c /my/path/php.ini" did not work for me. I had to use
"php -c /my/path/" which looks for php.ini in the specified path. This is for PHP 4.2.1
(compiled under FreeBSD).