Well, the first thing that comes to mind would be using the UNIX tail 
command.  Of course, this does you no good if you're on windows, but I'm 
not sure if that is the case.

if $n is the number of lines specified by the user, then the code would be 
like:

System("tail -$n logfile");

Jeff

At 12:22 AM 2/5/2002 -0300, Jared wrote:
>I am creating a script that reads "Radius" log files and prints them to
>the browser.  I want the User to be able to specify the Number of lines
>they want to see beginning at the end of the file and going up instead
>of reading the lines at the beginning (Which I can do).
>Does anyone have an idea on how to do this?
>
>Thanks in Advanced  Jared



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to