Re: How to Display a page while script runs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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,
Chris

Chris:

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux