Extremely simple PHP sample to count and return the number of lines in a text file. The output can be customised to suit your own requirements.
= "somefile.txt";
$lines = count(file($file));
echo "There are $lines lines in $file";
?>
As computer Engineering student , I can share my knowledge with others.........
Extremely simple PHP sample to count and return the number of lines in a text file. The output can be customised to suit your own requirements.
= "somefile.txt";
$lines = count(file($file));
echo "There are $lines lines in $file";
?>
No comments:
Post a Comment