& # 65279 – This error appears between the body, and gives space difference [duplicate]

Posted on

Question :

How do I remove this error? It is causing space in the header of the site.


Answer :

I found a very interesting solution, it’s called boom file.
This php file you can put in the root folder of your site, it is a kind of scan, which in turn accesses all the files and adjusts the BOM values of each file.

// Tell me the root folder path.
// You can also try this one
// Or this
// dirname(__FILE__)
ini_set('max_execution_time', 300);

$HOME = dirname(__FILE__);

// Is this a Windows host ? If it is, change this line to $WIN = 1;
$WIN = 0;

// That's all I need
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UTF8 BOM FINDER and REMOVER</title>
body { font-size: 10px; font-family: Arial, Helvetica, sans-serif; background: #FFF; color: #000; }
.FOUND { color: #F30; font-size: 14px; font-weight: bold; }
$BOMBED = array();
echo '<h2>These files had UTF8 BOM, but i cleaned them:</h2><p class="FOUND">';
foreach ($BOMBED as $utf) { echo $utf ."<br />n"; }
echo '</p>';

// Recursive finder
function RecursiveFolder($sHOME) {
global $BOMBED, $WIN;

$win32 = ($WIN == 1) ? "" : ""/""

Leave a Reply

Your email address will not be published. Required fields are marked *