Re: [PHP] output buffering problem

2002-11-16 Thread Colin Kettenacker
webmaster [EMAIL PROTECTED] on 11/15/02 3:47 PM wrote:

 I'm trying to enable output buffering to speed up the load time of some
 of our php web pages.  I've consulted the manual and enabled the
 following:

The manual lacks description for this topic. Take a look at this article at
Developer Shed, it got me up and running within 10 minutes.

http://www.devshed.com/Server_Side/PHP/OutputBuffering/page1.html

HTH,

ck



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] output buffering problem

2002-11-15 Thread webmaster
I'm trying to enable output buffering to speed up the load time of some
of our php web pages.  I've consulted the manual and enabled the
following:

output_buffering = On
output_handler = ob_gzhandler

At the beginning of my .php script, I include the following:

ob_start(ob_gzhandler);

This returns complete garbage when I run the page.  Is there something I
missed within the setup?  Or maybe something I need to install for
Apache?

php version = 4.1.2
RedHat = 7.2

Thanks for any advice,
-Elkan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Output buffering problem

2002-11-07 Thread Willem Vooys
Hi,

I'm having a buffering problem with following combination:
-Webserver: Apache 1.3.23
-CGI:   PHP 4.2.1
-Client:IE 6.026 (but fails using others as well)

Description:
I want the output buffer of php being flushed to the client in a
time-consuming loop, using the flush() and/or ob_flush() functions of
php. The client recieves no output till the script is totally
finished.

Possible causes:

-is the php buffer function working properly?
  Yes it is. When i start buffering some text i check for the size of
  the buffer to grow, and it does. Then i flush it and i can see the
  buffer size is 0. So this means that php sends the buffer to the
  backend right?

-is the browser buffering?
  Yes it does, but sending 300 bytes prior to the 'real' data fixes
  that problem, as i could see on another server using the same
  client, but differing versions of php/apache. (php 4.0.2/
  apache 1.3.14). On this particular server it worked like a charm.

-is apache using gzip?
  Yes, gzip is enabled.It is known for buffering output till a script
  finishes, but i disabled gzip in httpd.conf for this particular
  file, as shown below:
  IfModule mod_gzip.c
Location /export/home/'hostname'/htdocs/debug.php
   mod_gzip_on no
/Location
  /IfModule
  I think that this should do the trick. If not, how could i verify
  gzip being disabled?


Question:
Does this (newer) version of apache/php has some defaults that enable it
to buffer output? If so how can i disable them for one particular
file/directory?

Thnx in advance,

Wildcard


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php