How to read a specific line in a text file in PHP?
php read file line by line
$handle = fopen("inputfile.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
// process the line read.
}
fclose($handle);
} else {
// error opening the file.
}
get file each line in php
$filecreate = fopen($filename,'r');
while (($line = fgets($filecreate)) !== false) {
echo $line;
}