$std=fopen("php://stdin","r"); $line = fgets($std,1024);
I guess you need to enclose the whole reading-from-a-file method into an endless loop. The fgets($source,$bufsize) function reads $bufsize amount of chars from $source, so you're reading a 1024 chars long line only.
you mean something like this: #! /usr/bin/php <?php $std=fopen("php://stdin","r"); while($line = fgets($std,1024)){ $file=fopen("/tmp/dhcp.log","w+"); fwrite($file,$line); fclose($file); } fclose($std); ?> Sorry, no entries in /tmp/dhcp.log. Stefan -- ***************************************** in-put GbR - Das Linux-Systemhaus Stefan-Michael Günther Moltkestraße 49 D-76133 Karlsruhe Tel./Fax : +49 (0)721 / 83044 - 98/93 http://www.in-put.de ***************************************** -- GMX im TV ... Die Gedanken sind frei ... Schon gesehen? Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot