note 91963 added to function.ob-start
| From: | mariusads at helpedia dot com | Date: | Thu, 02 Jul 2009 22:02:53 +0000 |
| Subject: | note 91963 added to function.ob-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157853@lists.php.net to get a copy of this message | ||
Make sure the editor you use does not add the UTF8/UTF16 BOM at the start of the scripts if you want
to use ob_start("ob_gzhandler");
If those three characters are present, browsers like Firefox won't be able to decode the pages
and will report:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of
compression.
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of
compression.
Google Chrome will simply report "Error 2 (net::ERR_FAILED): Unknown error."
With the ob_start command commented out, the page is successfully load and the browser will usually
detect the BOM and not show it on the page, so everything's hard to debug.
----
Server IP: 69.147.83.197
Probable Submitter: 85.186.3.205
----
Manual Page -- http://www.php.net/manual/en/function.ob-start.php
Edit -- https://master.php.net/note/edit/91963
Del: integrated -- https://master.php.net/note/delete/91963/integrated
Del: useless -- https://master.php.net/note/delete/91963/useless
Del: bad code -- https://master.php.net/note/delete/91963/bad+code
Del: spam -- https://master.php.net/note/delete/91963/spam
Del: non-english -- https://master.php.net/note/delete/91963/non-english
Del: in docs -- https://master.php.net/note/delete/91963/in+docs
Del: other reasons-- https://master.php.net/note/delete/91963
Reject -- https://master.php.net/note/reject/91963
Search -- https://master.php.net/manage/user-notes.php