Byte Sort Error

I have a problem with the order byte at the top of my php file. It's like - ï "¿ . A php warning appears for this. I deleted the text twice. But it continues to come in. My file starts as follows:

<?php include('PL/header.php'); ?> 

Where 'header.php' looks like this:

 <?php require_once("BLL/index_isNotLoggedIn_bll.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 

How can i solve this?

+4
source share
1 answer

Your IDE probably inserts a BOM whenever you save a file. You must configure it to save as UTF-8 unsigned byte order.

How you do this depends on your development environment, check Google if necessary.

+3
source

Source: https://habr.com/ru/post/1345692/


All Articles