Separating page content into multiple pages....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
troy.porter
Forum Newbie
Posts: 1
Joined: Fri Aug 13, 2004 5:09 am

Separating page content into multiple pages....

Post by troy.porter »

I have a project to separate static web page content (files on disk) on the fly to prevent excessive page scrolling.. (page 1...page2 ...etc)

This should be done on the fly when the page is requested by the browser...hence i need to do some kind of word/character count based on the screen size and site design ....the problem is that page content includes HTML code for formatting so i need to be able to break up the content without breaking the HTML tags :?

has anybody done/seen anything like this done before and can help me out???


(PS.. the content pages have to remain on disk.,....i cannot use a database solution)
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

I don't know if there is a simpler solution than writing your own html parser. If you can do that you might as well make your browser.
Post Reply