PHP
  Home arrow PHP arrow Building Object-oriented Web Pages wit...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Building Object-oriented Web Pages with HTTP Compression in PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2006-04-24

    Table of Contents:
  • Building Object-oriented Web Pages with HTTP Compression in PHP
  • Object-based web pages in a nutshell: defining (X)HTML widget classes
  • More web page objects ahead: defining the remaining (X)HTML widget classes
  • Putting the pieces together: compressing the output of a web page generator class

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building Object-oriented Web Pages with HTTP Compression in PHP


    (Page 1 of 4 )

    Here we go! Welcome to the third -– and last -- part of the series “Using HTTP compression in PHP.” Just in case you didn’t know, this set of tutorials explores the advantages of using HTTP compression on dynamic PHP pages, reducing their download times and increasing the overall performance of PHP applications.

    Introduction

    Stepping back for a moment to the second part of the series, I’m sure you’ll recall that I explained how to introduce “Gzip” encoding as part of a generic data compressing PHP class. I coded this by using the PHP built-in “gzencode()” function, in order to compress dynamic output generated by parsed PHP files.

    As you saw, this simple (and powerful) approach allowed me to use HTTP compression, only spawning a single “DataCompressor” object and eventually using its corresponding methods. Although this object-based approach is pretty basic in its conception, it’s actually very useful for demonstrating how HTTP compression can be used when writing either procedural or object-oriented PHP code.

    Now, bringing our attention to the subject of this last tutorial, I’ll extend the application of “Gzip” encoding on dynamic PHP pages by implementing the data compression method that I explained before, within a PHP application that uses objects as the driving force for creating dynamic web pages. In short, what you’ll learn is how to compress parsed PHP pages, which, as I said before, are generated on the fly by a bunch of web page objects.

    Having drawn the guidelines for this article, it’s a good time to start learning how to use HTTP compression on object-oriented web documents. Let’s go!

    More PHP Articles
    More By Alejandro Gervasio


       · Over the course of this last tutorial, you'll learn how to use HTTP compression,...
     

       

    PHP ARTICLES

    - Authentication Scripts for a User Management...
    - Utilizing the Use Keyword for Namespaces in ...
    - Building a User Management Application
    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT