Posts: 2,536
Location: Western Maryland
|
josh,
That's a tough situation and frankly when most people perform pagination, it is usually data coming out of a database, which is why you found so much information on LIMIT.
That said, I'm thinking about how you could take an HTML file and page it. If you read it in as a string (not War & Peace, granted), you may be able to explode() it according to <p> tag and then only print so many paragraphs on a page.
A less refined way would be to decide about how many characters to put on a page and do it that way, but you would have to write some "clean-up" code to make sure you performed the page break on a paragraph break or at least a sentence or word break.
__________________
—Kyrnt
|