Bluehost.com Web Hosting $6.95

RE: [PHP] How to "smart refresh" php section using iframe?

This is a discussion on RE: [PHP] How to "smart refresh" php section using iframe? within the PHP General forums, part of the PHP Programming Forums category; [snip] This is not possible with PHP alone. You need to use some client side code such as JavaScript or ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2003
Jay Blanchard
 
Posts: n/a
Default RE: [PHP] How to "smart refresh" php section using iframe?

[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?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0