|
-
May 26th, 2005, 04:18 PM
#1
Thread Starter
Hyperactive Member
doevents equiv?
I know there is such an equivalent call in ASP.... something like response.flush or something. I am sure there has to be such a command in PHP. What is it?
-
May 26th, 2005, 05:38 PM
#2
<?="Moderator"?>
Re: doevents equiv?
do you mean flush()
http://uk2.php.net/flush
it will "flush" all of the output to the user.
-
May 26th, 2005, 05:42 PM
#3
Re: doevents equiv?
You do need to start an ouput buffer first using the ob_start() function, as output buffering is turned off by default.
-
May 26th, 2005, 05:43 PM
#4
<?="Moderator"?>
Re: doevents equiv?
does ob_start() deffinatly need to be started, because i have used it without calling od_start()?
-
May 26th, 2005, 06:09 PM
#5
Re: doevents equiv?
It seems that flush forces everything through, so it isn't required 
If you want complete control, when and where the output is sent then you should use the output control functions provided by PHP.
-
May 26th, 2005, 06:40 PM
#6
Thread Starter
Hyperactive Member
Re: doevents equiv?
Thanks guys. I realize that it isn't necessary, but I am generating a large web page with hundreds of links. They are generated as my script grinds through the hard drive. It would be nice to flush some information out to the user every so many links. So they don't have to wait for the whole page to be generated, ya know?
-
May 26th, 2005, 06:43 PM
#7
Thread Starter
Hyperactive Member
Re: doevents equiv?
I don't know how often php is flushed out by itself. Does anyone know??
-
May 26th, 2005, 06:47 PM
#8
Re: doevents equiv?
If you have not turned on output buffering, then the output is flushed by Apache, on a regular basis as it is generated. I am unsure at what size the buffer is but, when loading large pages the buffer is flushed often enough to give the appearance of a continual stream of data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|