{"id":1513,"date":"2019-02-08T10:35:57","date_gmt":"2019-02-08T10:35:57","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583369-how-to-disable-php-output_buffering-at-hostinger\/"},"modified":"2019-02-08T10:35:57","modified_gmt":"2019-02-08T10:35:57","slug":"1583369-how-to-disable-php-output_buffering-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583369-how-to-disable-php-output_buffering-at-hostinger\/","title":{"rendered":"How to Disable PHP Output_Buffering at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Output buffering is a process involving the <b>collection and storage of a PHP script&rsquo;s output<\/b> or content before sending it to the web browser, instead of sending it immediately.  It helps improve performance by sending larger amounts of data at once, allowing to modify content before sending it, as well as controlling the order in which content is delivered.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">While output buffering can be useful, there are situations where you might want to disable it. For example, if you&rsquo;re working with <b>dynamic content<\/b>, or if your PHP application or framework <b>already has a buffer<\/b> set up.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To disable output buffering, open the <b>.htaccess<\/b> file using the <b><a href=\"\/support\/7949267-how-to-use-the-file-editor-at-hostinger\" target=\"_blank\" class=\"intercom-content-link\">File Editor<\/a><\/b>. If the file is not present in the <b>public_html<\/b> folder of your website, <b><a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">create it<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Next, add the following line:<\/p><pre><code>php_value output_buffering Off<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once done, click on <b>Save<\/b> to apply the changes.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">With output buffering disabled, now you can have an improved dynamic content performance and prevent buffering conflicts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Disabling output_buffering via the .htaccess file<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[230],"tags":[],"class_list":["post-1513","post","type-post","status-publish","format-standard","hentry","category-php-advanced"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583369-how-to-disable-php-output_buffering-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583369-como-deshabilitar-php-output_buffering-en-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1513"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1513\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}