using database? text-files? what?
But essentially, if you're doing a strict 1000 characters per page (or about 1.5 pages worth of text), then you can say a small function like this:
<?php
function paginate($string, $page=1, $length=1000)
{
$start = ($page*$length)-1; // Get the starting position
$section = substr($string, $start, $length);
return $section;
}
// You would use that in the following way:
$page = $_GET['p']; // We'll use 3 in this example
$contents = file_get_contents('some/text/file.php');
$contents = paginate($contents, $page); // We want the 3000, to 3999 characters
echo $contents;
$page = $_GET['p']; // We'll use 1 in this example
$contents = mysql_result(mysql_query("SELECT text FROM table WHERE id='4'"), 0, 'text');
// Used a mySQL query as an example
$contents = paginate($contents, $page, 500);
// Get the 0 (first) to 499th (500th) characters
echo $contents;
?>
Something along those lines....