Reading line by line from STDIN
http://stackoverflow.com/questions/11968244/reading-line-by-line-from-stdin <?php while($f = fgets(STDIN)){ echo "line: $f"; }