what is " flush"?
Printable View
what is " 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();
?>
thanks ternoz..
so flush and print have same property in some way
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().
thanks for help.
So that means that it is FLUSH(), that sends data to client..
Right?
Correct.