faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 3 people (0%) answered Yes
Recently 0 of 3 people (0%) answered Yes

Entry

How to read just the last, let's say, 15 lines from a file?

Aug 23rd, 2004 16:48
Steve Cooley, sye beckwith,


read up here:
http://us3.php.net/fgets
or, you can explode fget()'d file content on newlines, read here:
http://us3.php.net/explode