guest
|
| Posted: 04/06/2002, 4:55 PM |
|
If you're using CodeCharge with php4.1.2 and templates, try this: go
to Modules and then to Global Functions Event. Add this line at the top:
ob_start("ob_gzhandler");
Assuming that you're not doing any [really non-standard] output from
your codecharge code to the browser before that point in the code, this will
instruct php to check the browser before each page serve and, if OK with the
browser, send a *compressed* (gzip) page that will be automatically
uncompressed by the browser (requires nothing else from the visitor). This
does three things:
1- decreases your bandwidth usage dramatically;
2- puts a slight more load on your server;
3- makes you pages lightning fast to modern browsers.
Don't you just love it when some things are *easy*?
Cheers,
- Don
PS: Note that, unfortunately, earlier versions of php had problems with this
gzip process.
|
|
|
 |
|