Accessing piped data in PHP shell script

From: Date: Fri, 01 Feb 2002 00:30:27 +0000
Subject: Accessing piped data in PHP shell script
Groups: php.general 
Request: Send a blank email to php-general+get-83040@lists.php.net to get a copy of this message
How can I access data/parameters piped into a PHP shell script? E.g: cat foo.txt | php -q myscript.php In this example I want to take the contents of foo.txt and store it into a variable/array in myscript.php. I tried $argv[] but no go. Thanks. David

« previous php.general (#83040) next »