PHP script to spread text over multiple pages (via whileloop)

Image via Wikipedia

My first website was using PHP. It was fairly easy to use and kind of fun.  Part of the problem though was that document management was time consuming so I changed over to WP.  It really is a dream to use all the features of this interface.  Still helpful for some self hosted sites.

Sometimes you’ll get a text file that is way too big to reasonably display all on one web page, this script is a simple paginator, which spreads the text over multiple pages cleanly. For the purposes of this demo, I have the data being read from a text file, however a more scalable approach would be to have the data being read from a database (I have commented this into the script). Read More

via whileloop

Share

Post a comment