Table of contents ▼▲
Bandwidth Reduction
In an effort to reduce the bandwidth being used, it is possible to get php to 'compress' the output it sends to the browser. Most browsers can handle this compressed data (even IE !!), and display the results as expected.To use this facility, simply add
ob_start("ob_gzhandler"
; as the first line of the /cls_wiki.php file.
This will only work if php was compiled with the zlib (--with-zlib) option. You can check this by running phpinfo() and looking for zlib.
I have this turned 'on' as part of the default install.
A quick example...
| Before | [12/Mar/2004:12:39:46 +0000] "GET /wikidx/wikidx.php?page=wikidx/docs/homepage HTTP/1.1" 200 4539
| |||
| After | [12/Mar/2004:13:37:49 +0000] "GET /wikidx/wikidx.php?page=wikidx/docs/homepage HTTP/1.1" 200 1644
| |||