note 22708 added to features.commandline

From: Date: Thu, 27 Jun 2002 07:52:02 +0000
Subject: note 22708 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-32262@lists.php.net to get a copy of this message
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). -- http://www.php.net/manual/en/features.commandline.php http://master.php.net/manage/user-notes.php?action=edit+22708 http://master.php.net/manage/user-notes.php?action=delete+22708 http://master.php.net/manage/user-notes.php?action=reject+22708

« previous php.notes (#32262) next »