I want to do something like this:
$ [mysql query that produces many lines] | php parse_STDIN.php
In parse_STDIN.php file I wan
parse_STDIN.php
use STDIN constant as file handler.
STDIN
while($f = fgets(STDIN)){ echo "line: $f"; }
Note: fgets on STDIN reads the \n character.
\n