stdin streams

From: Date: Thu, 28 Sep 2000 20:15:03 +0000
Subject: stdin streams
Groups: php.general 
Request: Send a blank email to php-general+get-17957@lists.php.net to get a copy of this message
Does anyone know how to get variables passed in a command line PHP script? For example if I run: /usr/bin/php /path/to/php/file.php var1 var2 varx in PERL you can get these variables by referencing $1 and $2 (or $_[0] $_[1] if I remember right) but anyways in the PHP manual it says you can access the stdin stream by calling on php://stdin or /dev/stdin or /dev/fd/0 with a readfile pointer and then accessing it that way, but that doesn't seem to work either. Anyone have any suggestions as to how I can get this input? ________________________________________ Justin Rodino <justin@goldendome.com> Web Application Developer Golden Dome Media PO Box 1616 Notre Dame, IN 46634 219.631.1116 800.728.7979 ext. 1116 219.631.1001 - fax http://www.goldendome.com/ http://www.wndu.com/

« previous php.general (#17957) next »