Read file line by line with PHP

$fh = fopen("myFile.txt", "r");
while (!feof($fh)) {
	$line = fgets($fh);	
	echo $line;
}
fclose($fh);

Leave a Reply

Your email address will not be published. Required fields are marked *