From: "Martin Hjort Eriksen" <[EMAIL PROTECTED]> > I have a file where the pointer is set at EOF. > > Is it possible, in a very easy way, to rewind it 5 lines? Thereby being > able to return the last 5 lines of the file with "fgets".
You could use rewind() if you know how many bytes you need to go back. You could also use file() and just grab the last 5 array entries. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php