Mobile app development for IPhone,Android, Blackberry and windows phones

Mobile software development for IPhone, Android, Blackberry

Mobile app development for IPhone,Android, Blackberry and windows phones More »

web design Coimbatore , web development Coimbatore | Suriyan Technologies

Website design, website development using Joomla, Wordpress, Drupal

web design Coimbatore , web development Coimbatore | Suriyan Technologies More »

Software development company Coimbatore Suriyan Technologies

Desktop application development

Software development company Coimbatore Suriyan Technologies More »

Joomla, Drupal, Wordpress based site development

Cutting Edge CMS site development

Joomla, Drupal, Wordpress based site development More »

 

Enable GZIP in PHP Application

Already i shown how to enable GZIP in YII Framework application, To enable GZIP in general PHP Application include the below code at the top of the document you want to gzip:

if( isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ) && substr_count( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) )

 ob_start( 'ob_gzhandler' );

else

 ob_start();

?>

 

August 8, 2011 suriyan