Re: [PHP] Q on php://stdin -- an answer!

2002-02-21 Thread Billy S Halsey
For anyone interested in the answer to this problem, here's what I found out. I ran the script through truss and looked at what was happening. It seems that when trying to use fopen("php://stdin", "r") or fopen("/dev/fd/0", "r"), that as it's reading from the file with fgets(), it does an lse

Re: [PHP] Q on php://stdin

2002-02-20 Thread Billy S Halsey
Hi all, I still have been completely unable to get this to work like it should. I have a simple script: #!/usr/local/bin/php -q So if I call this echo.php, then if I try something like cat /etc/hosts | ./echo.php It prints a # (first line of /etc/hosts) followed by two blank lines. The