Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-10-29
3
Medium Priority
?
167 Views
Last Modified: 2008-03-06
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.
0
Comment
Question by:m175400
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 48

Expert Comment

by:hernst42
ID: 12443236
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
 
LVL 1

Author Comment

by:m175400
ID: 12444626
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
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 12444831
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question