PHP Read file line by line with PHP - November 1, 2012 - ServerAdmin $fh = fopen("myFile.txt", "r"); while (!feof($fh)) { $line = fgets($fh); echo $line; } fclose($fh);$fh = fopen("myFile.txt", "r"); while (!feof($fh)) { $line = fgets($fh); echo $line; } fclose($fh);