* Thus wrote Nicolas Frisby ([EMAIL PROTECTED]): > > Is my suspicion that the CLI php parser does not set up STDIN to receive > from a pipe correct, or am I missing something here?
I think the problem might be DOS's attempt to do a real pipe. > > pps - if someone could try similar piping on a *nix box, I'd be interested > to know how that goes pipe.php: $fp = fopen("php://stdin", "r"); while (!feof($fp) ) { print "piped: " . fgets($fp); } % dir | php pipe.php results: piped: total 42 piped: drwxr-xr-x 12 curt www 512 Aug 6 14:31 ./ piped: drwxr-xr-x 3 curt www 512 Aug 2 13:58 ../ ... Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php