note 95276 deleted from function.include by peehaa
| From: | peehaa@php.net | Date: | Fri, 09 Dec 2016 22:47:41 +0000 |
| Subject: | note 95276 deleted from function.include by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208386@lists.php.net to get a copy of this message | ||
Note Submitter: this dot person at joaocunha dot eti dot br
----
AVOID ZERO BYTE ORDER MARK!
I was having problems with include/require (once or not). I created an include-opening.php which had
the initial structure of the page, and then included this page in all other pages. The result was
looking "crashed", so I did compare including or just pasting the html code into the page.
The hardcoded version displayed ok, even with the source code being exactly the same.
So I opened the include file with notepad++ and set the encoding to UTF-8 (no BOM) and voila,
everything is working great now.