When the require function is used in php to load the utf8 file, an empty line is generated because several UTF-8 characters are generated during file editing in windows, these characters are called Unicode signatures (BOM ).
When the require function is used in php to load the utf8 file, an empty line is generated because several UTF-8 characters are generated during file editing in windows, these characters are called Unicode signatures (BOM ).
The use of require is as follows: require ("MyRequireFile. php ");. this function is usually placed at the beginning of the PHP program. before the PHP program is executed, it will first read the file specified by require to make it a part of the PHP program webpage. this method can also be used to introduce common functions into webpages.
Especially when I use notepad to save Web files from ANSI as a UTF-8, it is easy to appear!
Solution:
1. you can press Ctrl + J in Dreamweaver to remove this option from the title and encoding;
2. use EditPlus to save the file as a UTF-8 (without BOM) file.