Command line parameters

From: Date: Tue, 07 Oct 2003 16:31:09 +0000
Subject: Command line parameters
Groups: php.general 
Request: Send a blank email to php-general+get-165326@lists.php.net to get a copy of this message
Passing arguments to php bin like this used to work in older versions: # /usr/local/bin/php test.php '&arg=test' but now it doesn't: $arg has no value within test.php It's not in $GLOBALS either. How to pass parameters to the script (apart from argv/argc) ? # /usr/local/bin/php -v PHP 4.3.2 (cli) (built: Aug 10 2003 10:49:12) on RH9

« previous php.general (#165326) next »