How to display a 'please wait' message whilst processing?

From: Date: Thu, 04 Nov 2004 19:47:10 +0000
Subject: How to display a 'please wait' message whilst processing?
Groups: php.general 
Request: Send a blank email to php-general+get-201212@lists.php.net to get a copy of this message
On a number of sites a message and/or graphic is displayed asking you to wait or be patient whilst some processing is being performed to compose the next page. How are these done within PHP scripts? Could output buffering be used for this purpose? For example is it possible to do something like: <?php // Nothing is output until end of this script :( ob_start(); echo "Please wait..."; ob_flush(); //Processing to build report sleep(10); ob_end_flush(); ?> Should I be aware of anything that could trip me up on this? Any help or pointers much appreciated. Graham

« previous php.general (#201212) next »