There are two ways of adding compression to php file

Method 1
Simple add the below line in the php file at the beginning

  ob_start( 'ob_gzhandler' ); 
Posted in PHP.

Leave a reply