&1", 'r'); while(!feof($handle)) { $buffer = fgets($handle); echo "$buffer
\n"; ob_flush(); flush(); } pclose($handle);