RE: [PHP] output_buffering

From: Date: Sun, 23 Jun 2002 14:58:01 +0000
Subject: RE: [PHP] output_buffering
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103468@lists.php.net to get a copy of this message
What exactly are you measuring and how? -----Original Message----- From: James Drabb [mailto:JDrabb@cfl.rr.com] Sent: Sunday, June 23, 2002 9:09 AM To: php-general Subject: [PHP] output_buffering I was running some speed tests on a page that returns 1000 records from a db and spits them into a table. I have output_buffering Off in my php.ini file because of the statement below: ; Output buffering allows you to send header lines (including cookies) even ; after you send body content, at the price of slowing PHP's output layer a ; bit. You can enable output buffering during runtime by calling the output ; buffering functions. You can also enable output buffering for all files by ; setting this directive to On. If you wish to limit the size of the buffer ; to a certain size - you can use a maximum number of bytes instead of 'On', as ; a value for this directive (ex., output_buffering=4096). output_buffering = Off However the page takes 7 seconds to load with output_buffering = Off and 1 second with output_buffering = On! What is up with that? Have most of you found output buffering faster?

« previous php.general (#103468) next »