RE: [PHP] How to "smart refresh" php section using iframe?
| From: | Jay Blanchard | Date: | Mon, 29 Sep 2003 13:10:44 +0000 |
| Subject: | RE: [PHP] How to "smart refresh" php section using iframe? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164236@lists.php.net to get a copy of this message | ||
[snip]
This is not possible with PHP alone. You need to use some client side
code such as JavaScript or Flash.
[/snip]
I think that with a combination (I have not tested this) of ob_start,
ob_flush(), sleep(), and header() that this could be accomplished.
ob_start();
....
gather output
....
ob_flush(); //flush output
sleep(); //waiting to refresh
header($PHP_SELF); exit();
Again, this is not tested, but my very foggy Monday morning brain says
this should work, no?