• Advertisement

GZIP pages with PHP

Talk about PHP problems, codes, innovations or anything related to PHP language

Del.icio.us Digg FURL FaceBook Stumble Upon Reddit Google Bookmarks Squidoo Technorati Yahoo My Web

GZIP pages with PHP

Postby john » Sat Mar 14, 2009 8:54 pm

This is an handy way to GZIP when you have apache gzip disabled:

Code: Select all
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>


Hope it work well for yoou.
User avatar
john
New Member
New Member
 
Posts: 5
Joined: Sat Mar 14, 2009 8:49 pm
Gender: None specified

Advertisement

Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement