> $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. Tamas