Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
PHPBuilder: Controlling PHP Output: Caching and compressing dynamic pages
(Jan 25th, 17:54:20 )

"mod_gzip is an Apache module which compresses static html pages using Gzip, according to IETF standards for browsers that accept gzip enconding (IE, Netscape, etc). mod_gzip may accelerate the download time for pages 4/5 times and I strongly suggest you use mod_gzip in your webserver. However, due to a lack of a filtering mechanism between modules in Apache 1.x.x, there is no way to compress PHP generated output using mod_gzip. Therefore, we have to build our own compressing engine in PHP. In this article, I will explain how to use PHP output controlling functions to make your pages load FAST!"

"One of the best things in PHP4 is that you can tell PHP to buffer all of the output generated in the script, so no content is sent to the browser, until you decide to send it. You can use this function to use header and setcookie functions, wherever you want in your script. However, this is only a small advantage of the powerful output functions."

Complete Story

Related Stories:
Improving mod_perl Driven Site's Performance -- Part I: Choosing Operating System and Hardware(Dec 07, 2000)
HTTP Compression Speeds up the Web(Oct 13, 2000)
Apache Guide: Logging, Part 5: Advanced Logging Techniques and Tips(Sep 25, 2000)
Apache Module Registration: mod_gzip(Aug 29, 2000)
ANNOUNCE: Apache::Compress 1.002 (new moduule)(Aug 22, 2000)
Getting Started with mod_perl in 30 Minutes(Jun 23, 2000)

Printed from Apache Today (

About Triggers Media Kit Security Triggers Login

All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.4, Apache 1.3, and PHP 4
Copyright INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.