Forum Moderators: phranque

Message Too Old, No Replies

Flushing buffer

Which variable to switch for allow output buffering

         

anjanesh

5:59 am on Jun 3, 2006 (gmt 0)

10+ Year Member



Hi

In spite of using flush() in my PHP code, the entire output is show after the document has loaded 100%.

What setting do I need to change in my conf file to alter the output buffering methods?

Linux
Apache

Thanks

coopster

10:20 pm on Jun 8, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Are you running mod_gzip or mod_deflate? Are you certain it is the http server and not your browser or otherwise, especially on Windows servers or even in your MS IE browser. See the PHP flush() [php.net] manual page for more details.

anjanesh

4:02 am on Jun 9, 2006 (gmt 0)

10+ Year Member



Server using mod_gzip/1.3.26.1a - Im pretty sure its the server because on my WinXP Apache/PHP, flush works alright - also, the same script flushed properly on another server.

Does mod_gzip or mod_deflate have anything to do with flushing?

coopster

2:21 pm on Jun 9, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Did you read the link?


Server modules for Apache like mod_gzip may do buffering of their own that will cause flush() to not result in data being sent immediately to the client.

anjanesh

4:22 pm on Jun 9, 2006 (gmt 0)

10+ Year Member



Is there any way to bypass this? Say unload the dl ir ini_set?

coopster

5:23 pm on Jun 9, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Is there any way to bypass this?

Don't use the module ;) Just kidding.

You will have to go through the configuration options and make that determination. mod_gzip is an open source project [sourceforge.net] and the "Home Page" link leads you to some documentation. I would probably start with "Caching" as well as configuration "file sizes" in the documentation.