Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

How To Put Your Articles Into Separate Pages

By Ben Sinclair
2005-04-09


The Article Part

Lets say this is your (extremely short) article:

Hello,

This article is about nothing much... This is just here for a page example.

I could go on forever... bla bla bla bla bla bla bla bla bla bla

And again... bla bla bla bla bla bla bla bla bla bla bla.

OK, you want to "cut up" the article into 3 seperate pages so that it is displayed better and is easier to read. This is what you would add to your article. You'll need to add a little bit of PHP:



<?php
$pages = "3"; // How many pages you want on the page
$article = <<<EOF
Hello,

This article is about nothing much... This is just here for a page example.

{ENDPAGE1}
I could go on forever... bla bla bla bla bla bla bla bla bla bla

{ENDPAGE2}
And again... bla bla bla bla bla bla bla bla bla bla bla.

{ENDPAGE3}
EOF;?>


Tutorial Pages:
» How To Put Your Articles Into Seperate Pages
» The Article Part
» The Code


 | Bookmark
Related Tutorials:
» Zend Framework Tutorial
» Port Scanning and Service Status Checking in PHP
» Web Database Access from Desktop Applications
» CubeCart 3.0 Installation and Configuration
» PHP Site Search Made Easy
» Installing and Configuring Drupal 6.1

Ask A Question
characters left.