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.


PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to