Sending x bytes to the user before adding a "Next >" button.

I have a massive database of info and I want to display it all in one list. However, I want google to be able to index it all, so every however many bytes I'd like to say "hey, ok, I wont show any more on this list, I'll add a next button and carry on from there".

With me?

I hope so. How do you suggest I approach this best?

Thanks in anticipation.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

hernst42Connect With a Mentor Commented:
you could use the output-buffer-function of php.

use ob_start() at the beginning of your script. check the size of the so far genereated output with

If it has come accross a certain amount end generating additional content,
use ob_end_flush to send that output and then start the pager
you might check if the $_SERVER['HTTP_USER_AGENT'] contains Googlebot. In that case show all entries, if not show the pager.
m175400Author Commented:
Thanks, but I want to know how to tell how many bytes I've processed though, not tell if it's google or not.
All Courses

From novice to tech pro — start learning today.