Re: How to Display a page while script runs?
| From: | tedd | Date: | Fri, 03 Nov 2006 16:48:57 +0000 |
| Subject: | Re: How to Display a page while script runs? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244158@lists.php.net to get a copy of this message | ||
At 4:46 PM -0500 11/2/06, Chris wrote:
I have a php script which takes maybe 15-20 seconds to run, however until it completes a blank web page is displayed to the user. Is there a way/method which would enable me to give some feedback to the user while the script is running so the blank page is not displayed? Best, ChrisChris: Use two scripts -- it will work. The first to display a page, like so: http://xn--ovg.com/a/wait.php And then have that script run your second script like so: ob_clean(); include('second.php'); exit(0); hth's tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com