{"id":1350,"date":"2016-12-12T16:14:23","date_gmt":"2016-12-12T15:14:23","guid":{"rendered":"https:\/\/www.speich.net\/articles\/?p=1350"},"modified":"2017-08-29T08:52:26","modified_gmt":"2017-08-29T06:52:26","slug":"why-is-your-php-output-still-buffered-even-when-you-turned-buffering-off","status":"publish","type":"post","link":"https:\/\/www.speich.net\/articles\/en\/2016\/12\/12\/why-is-your-php-output-still-buffered-even-when-you-turned-buffering-off\/","title":{"rendered":"Why is your PHP output still buffered even when you turned buffering off?"},"content":{"rendered":"<p>If you want to stream your content with PHP, you need to have <a href=\"http:\/\/ch1.php.net\/manual\/en\/outcontrol.configuration.php#ini.output-buffering\" target=\"_blank\" rel=\"noopener\">output_buffering<\/a> set to off in you php.ini and\/or use it together with <a href=\"http:\/\/php.net\/manual\/en\/function.flush.php\">flush()<\/a>. If this still does not work check your Antivirus software.<\/p>\n<p>On Windows, the <strong>on-access scanners of Sophos and Avira Antivirus buffer your http output<\/strong>! The only solution is to either switch to https or turn on-access scan off.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to stream your content with PHP, you need to have output_buffering set to off in you php.ini and\/or use it together with flush(). If this still does not work check your Antivirus software. On Windows, the on-access scanners of Sophos and Avira Antivirus buffer your http output! The only solution is to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.speich.net\/articles\/en\/2016\/12\/12\/why-is-your-php-output-still-buffered-even-when-you-turned-buffering-off\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Why is your PHP output still buffered even when you turned buffering off?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[242,240],"class_list":["post-1350","post","type-post","status-publish","format-standard","hentry","category-php","tag-antivirus","tag-buffering","entry"],"_links":{"self":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/comments?post=1350"}],"version-history":[{"count":4,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1350\/revisions"}],"predecessor-version":[{"id":1385,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1350\/revisions\/1385"}],"wp:attachment":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/media?parent=1350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/categories?post=1350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/tags?post=1350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}