note 900 deleted from Variables from outside PHP by ronabop

From: Date: Fri, 25 Aug 2000 08:22:27 +0000
Subject: note 900 deleted from Variables from outside PHP by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3127@lists.php.net to get a copy of this message
When using the PHP Interpreter as a binary, it is possible to write a normal Command that can be run from the shell, simply put: #!/usr/bin/php on the first line and make it executeable with: chmod u+x thescript.php3 with the -q option (missing in the documentation): #!/usr/bin/php -q the Script wont output any HTTP-header information. BUT how is it (if) possible to get access to the parameters when called as a command: thescript.php3 x y z or to the contents of STDIN: thescript.php3 < somefile.data This would enable every Developer to use 100% PHP3 in every project. In an application with far above 1MB this can be VERY important. Is there a way to solve my suffering and put PHP to the next level?

« previous php.notes (#3127) next »