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.
LVL 1
m175400Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
hernst42Connect With a Mentor Commented:
you could use the output-buffer-function of php.
http://de3.php.net/manual/en/ref.outcontrol.php

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

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
0
 
hernst42Commented:
you might check if the $_SERVER['HTTP_USER_AGENT'] contains Googlebot. In that case show all entries, if not show the pager.
See http://www.ericgiguere.com/articles/masquerading-your-browser.html
0
 
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.
0
All Courses

From novice to tech pro — start learning today.