note 64516 added to features.commandline
| From: | MateCosido at osu1 dot php dot net | Date: | Mon, 17 Apr 2006 13:22:27 +0000 |
| Subject: | note 64516 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-108335@lists.php.net to get a copy of this message | ||
If you are using php-recommended.ini as your php.ini file,
note that you won't be able to access $argv, or $GLOBAL[$argv]
So, you either call the php client as:
php -n test.php foo bar
that is, do not load php.ini, being foo and bar arguments.
or
php -d register_argc_argv=On test.php foo bar
or update your php.ini by turrning, the register_argc_argv on.
register_argc_argv = On
----
Server IP: 201.216.232.3
Probable Submitter: 200.55.107.145
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- http://master.php.net/note/edit/64516
Del: integrated -- http://master.php.net/note/delete/64516/integrated
Del: useless -- http://master.php.net/note/delete/64516/useless
Del: bad code -- http://master.php.net/note/delete/64516/bad+code
Del: spam -- http://master.php.net/note/delete/64516/spam
Del: non-english -- http://master.php.net/note/delete/64516/non-english
Del: in docs -- http://master.php.net/note/delete/64516/in+docs
Del: other reasons-- http://master.php.net/note/delete/64516
Reject -- http://master.php.net/note/reject/64516
Search -- http://master.php.net/manage/user-notes.php