I have implemented some very similar functionality...
It very straightforward.
Mine was based on showing 25 lines per page. (since I was showing contents of a file).
At the bottom of every page was a
NEXT button.
The NEXT button sends (through the URL) the current line shown. (http://...?line=25)
When I load my page, I grab this number and print the next 25 lines... THEN set the URL of NEXT such that $line = $line +25;
Then when the page is loaded... grab the 50, print the next 25 lines, and increment the NEXT button line ctr.
good luck...
there may be some simpler ways, but this works fine... (with smaller files.) (when dealing with more then 30000 lines, I had to index my file first).
andre @ performance technologies