0)) { $buffer = fgets ($hd, 4096); echo ($buffer); --$lines; } fclose ($hd); ?>