CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 php4.1.2/templates: faster pages and lower bandwidth use

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.