Login   Register  
PHP Classes

Class: GzOutput

Icontem
elePHPant

  Classes of Andrea Giammarchi  >  GzOutput  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: GzOutput Support forum
Base name: gzoutput
Description: Serve compressed files if the browser supports it
Version: 0.5
Required PHP version: 4
License: MIT/X Consortium License
 
  Author   Group folder image Groups   Detailed description  
  Dependencies   Applications   Files Files  

Author

Picture of Andrea Giammarchi
Name: Andrea Giammarchi <e-mail contact>
Published packages: 17 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Home page: http://www.3site.it/

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

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.

Packages needed by this class

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

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

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.