output buffering
Vincent Danen <[email protected]> Thu, 11 Dec 2003 17:57:23 -0700
| Newsgroups | gmane.comp.bug-tracking.anthill.devel |
|---|---|
| Message-ID | <[email protected]> |
I've just committed the use of output buffering in CVS. This is
actually fairly neat.
On Mandrake Linux 9.2, using PHP 4.3.3, I tested index.php and
enterbug.php (the "how do i report a bug" thing) encoded and not and
the results are:
index.php: 5277 bytes and 1938 bytes compressed
enterbug.php: 7572 bytes and 303 bytes compressed
On OS X 10.3 using PHP 4.3.2, I tested the same two files with these
results:
index.php: 5431 bytes and 2019 bytes compressed
enterbug.php: 8367 bytes and 3555 bytes compressed
The slight difference in the un-encoded size for enterbug.php is that
the Linux one is using the default theme and the OS X one is using the
"blue" theme.
I couldn't explain why it got compressed so highly on the Linux machine
for enterbug.php.. I did it twice just to make sure. Could be
different versions of gzip (both are the same version of apache).
Regardless, I think this is pretty cool. =) Just had to share that.
Oh, and it's configurable so if your server (ie. IIS maybe?) doesn't
support compression and output buffering doesn't work well in PHP, it
can be turned off.
---
MandrakeSoft Security; http://www.mandrakesecure.net/
Online Security Resource Book; http://linsec.ca/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD : 88D8 0D23 8D4B 3407 5BD7 66F9 2043 D0E5 FE6F 2AFD}
_______________________________________________
Anthill-workers mailing list
Anthill-workers-+mQDA36h6dWw5LPnMra/[email protected]
http://vmlinuz.ca/mailman/listinfo/anthill-workers
PGP.sig
(application/pgp-signature, 186 B) - not displayed