Login   Register  
PHP Classes
elePHPant
Icontem

GzOutput

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrea Giammarchi  >  GzOutput  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: GzOutput
Base name: gzoutput
Description: Serve compressed files if the browser supports it
Related classes: , , , , , , ,
Version: 0.5
PHP version: 4
License: MIT/X Consortium License
All time users: 752 users
All time rank: 3676
Week users: 2 users
Week rank: 1637
 

  Author  
Picture of Andrea Giammarchi
Name: Andrea Giammarchi <e-mail contact>
Packages: 17 Browse all classes by Andrea Giammarchi Browse all classes by
Country: Italy Italy - PHP jobs in Italy
Age: 34
All time rank: 192 in Italy Italy
Week rank: 94 Down3 in Italy Italy Down
Innovation award
Innovation award
Nominee: 5x


  Detailed description  
This class can be used to serve one or more files compressing them if the user browser supports compression.

It can serve one or more files in the same request. If the files are Javascript or CSS, they can be processed first to remove needless comments and white space.

If the browser supports compression, the class may compress the files data before serving to the browser.

The resulting data may be stored in a cached directory to avoid processing overhead in subsequent requests of the same data.

The class checks the HTTP request headers to avoid serving data that did not change if the browser has cached the data and it was not changed since last time it was served.

  Groups   Rate classes User ratings   Dependencies   Applications   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Compression Data compression and file archive manipulation View top rated classes


  User ratings  
There are not enough user ratings to display for this class.

  Packages needed by this class  
Class Dependency Why it is needed
SourceMap
Required
Use this class to map source codes
Cruncher class
Required
Required to remove comments and reduce sorces size

  Applications that use this class  
Link Description
JavaScript overbyte Editor experimental runtime and realtime JavaScript Editor
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file gzmanager.php Example configuration file for public static GzOutput::createFromConfig method.
Plain text file GzOutput.class.php Aux. Choose correct class version for different hosting solutions.
Plain text file GzOutput.class4.php Class PH 4 compatible version
Plain text file GzOutput.class5.php Class PHP 5.X compatible version (E_STRICT ready)
Accessible without login HTML file GzOutput.doc.html Doc. How to use this class and static methods with or without automations.

Download all files: gzoutput.tar.gz gzoutput.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.