Hi,
How do I get the Last Line of the file?
thanks
| SitePoint Sponsor |





Hi,
How do I get the Last Line of the file?
thanks
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein





Use feof function
More info: http://www.php.net/manual/function.feof.php
- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy





or
$file = file("thefileinquestion");
$lastline = $file[count($file) - 1];
Please don't PM me with questions.
Use the forums, that is what they are here for.
Bookmarks