{"id":649,"date":"2012-09-18T05:29:58","date_gmt":"2012-09-18T05:29:58","guid":{"rendered":"http:\/\/codeatelier.wordpress.com\/?p=316"},"modified":"2012-09-18T05:29:58","modified_gmt":"2012-09-18T05:29:58","slug":"how-to-add-compression-to-php-file-using-gzip","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/how-to-add-compression-to-php-file-using-gzip\/","title":{"rendered":"How to add Compression to php file using Gzip"},"content":{"rendered":"<p>There are two ways of adding compression to php file<\/p>\n<p><strong>Method 1<\/strong><br \/>\nSimple add the below line in the php file at the beginning <\/p>\n<pre>\n  ob_start( 'ob_gzhandler' ); \n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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( &#8216;ob_gzhandler&#8217; );<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[],"class_list":["post-649","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=649"}],"version-history":[{"count":0,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/649\/revisions"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}