Viewing only the last part of a file<

like i make a chat thingy on my site, with

$fh = fopen("chat.txt",a);
fwrite($fh, $_POST["chat"]);

how can i echo only the last 20 lines of it or something?
 
Back
Top