note 26967 added to features.commandline

From: Date: Tue, 19 Nov 2002 05:39:01 +0000
Subject: note 26967 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-39680@lists.php.net to get a copy of this message
Command line arguments DO NOT WORK with #!. This is probably a limitation of the Unix/Linux kernel, and not a limitation of PHP per se. For example, the following DOES NOT activate register_argc_argv: #! /usr/bin/php -d register_argc_argv=on Here is a workaround: #! /bin/bash /usr/bin/php -d register_arc_argv=on <scriptname.php> -- http://www.php.net/manual/en/features.commandline.php http://master.php.net/manage/user-notes.php?action=edit+26967 http://master.php.net/manage/user-notes.php?action=delete+26967 http://master.php.net/manage/user-notes.php?action=reject+26967

« previous php.notes (#39680) next »