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
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
2 matches
Mail list logo