Go Back   Cloud Computing > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-11, 23:20
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default Enable gZIP compression

Hi!
How to enable gZIP compression for our php pages?
Reply With Quote
  #2 (permalink)  
Old 05-25-11, 00:05
BOD Member
 
Join Date: Jun 2010
Posts: 175
Default

Add the following line at the top of your php files to enable gZIP compression for our php pages:

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
__________________
Carol.P
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.