|
-
September 22nd, 2008, 03:39 AM
#1
-
September 22nd, 2008, 05:05 AM
#2
Re: flush
Normally a webserver parses the whole code and than sends the output to the client.
With flush(); you send what you have parsed
Handy for pages with a lot of content.
Code:
<?php
blabla code
flush();
blabla more code
flush();
?>
-
September 22nd, 2008, 05:23 AM
#3
Re: flush
thanks ternoz..
so flush and print have same property in some way
-
September 22nd, 2008, 08:12 AM
#4
Re: flush
Flush and print are not alike at all. Print() only outputs to the PHP buffers what will be sent to the client-side. The buffer information will only be sent after the server has finished or you flush the buffers.
Note tht flush() only flushes output from PHP. If you want a full webserver flush, you need to use ob_flush() along with flush().
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
September 22nd, 2008, 11:44 PM
#5
Re: flush
thanks for help.
So that means that it is FLUSH(), that sends data to client..
Right?
-
September 23rd, 2008, 07:06 AM
#6
Re: flush
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
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
|