RE: [PHP] output_buffering

2002-06-23 Thread Mark Charette

What exactly are you measuring and how?

-Original Message-
From: James Drabb [mailto:[EMAIL PROTECTED]]
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?


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




[PHP] output_buffering

2002-06-23 Thread James Drabb

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?

Jim Drabb

--
-
Never ask a geek why, just nod your head and slowly back away
-
James Drabb JR
Programmer Analyst
[EMAIL PROTECTED]



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




[PHP] Output_Buffering ??

2002-05-19 Thread Jason Caldwell

Can someone explain output_buffering to me?  I looked on php.net -- but
cannot find reference to it -- it's a setting in the PHP.INI file.

In my *production* .ini version, the output_buffering tag is set to 4096
(4k) -- what exactly is the intent of this tag?

What brought this question up was when I upgraded from 4.1.1 to 4.2.1, and
this time decided to use the production level .ini file -- when I ran a
script from my command line -- no output was appearing -- that is, I have
print() functions throughout my looping script -- and it wasn't
outputting -- I set the output_buffering tag to equal 0 -- and my looping
script now displays the text I want it to.

Is it that when a script exits or terminates that this 4k buffer gets
flushed out (in this case) to my screen?

What additional processing occurs if this tag is set to off, or 0 (zero) ?

Thanks
Jason




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