Link to home
Start Free TrialLog in
Avatar of m175400
m175400

asked on

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.
Avatar of hernst42
hernst42
Flag of Germany image

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
Avatar of m175400
m175400

ASKER

Thanks, but I want to know how to tell how many bytes I've processed though, not tell if it's google or not.
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial