We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

Leech on 07/21/06


Tagged

modgzip


Versions (?)


Who likes this?

6 people have marked this snippet as a favorite

marza
haaris
neuroasis
vali29
Steffen82
AlastairDewar


Use mod_gzip in your PHP files


Published in: PHP 


This single line allows you to use the mod_gzip Apache module (only if installed) to save bandwidth compressing the content to send.

  1. <? ob_start("ob_gzhandler"); ?>

Report this snippet 

You need to login to post a comment.