RE: [PHP] intermediate search screen
| From: | daniel | Date: | Thu, 10 Apr 2003 02:38:03 +0000 |
| Subject: | RE: [PHP] intermediate search screen | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143254@lists.php.net to get a copy of this message | ||
in my experiments and the only way to flush and echo within a loop statement
while it is looping and not afterwards is by doing this
flush();
ob_flush();
or
ob_flush();
flush();
one of them works , as flush() alone doesnt.
>===== Original Message From shiflett@php.net =====
>--- daniel <daniel@electroteque.org> wrote:
>> note: flush only works if u do a ob_flush after it
>
>That is incorrect. I think this is a common misconception, because it is true
>*if* you use output buffering. Of course, any sort of buffering is going to
>interfere (an important note if you are having trouble with flush()), as
should
>be apparent by the way chunked transfer encoding works.
>
>If you want to use chunked transfer encoding, you probably shouldn't be
>buffering anyway.
>
>Chris
>
>=====
>Become a better Web developer with the HTTP Developer's Handbook
>http://httphandbook.org/