I have a problem on a site that I am making. There is this line of white space at the top of my page. I can not find out where it is coming from. It might be because of extr
I just downloaded Notepad++ and should advise UTF-8 without BOM is not an encoding option. Choose only "UTF-8" not the "UTF-8 BOM". That worked.
Tested all suggestion online, solved with notepad, procedure :
php
without <?
<?
then paste all codeyou can solve this problem doing the following...
based in what scunliffe said... you can avoid this character... example
$file = file_get_contents('header.php');
$file = substr($file, 3, strlen($file));
echo $file;
so, you're skipping this bug...
regards
While reviewing your website output on firebug, i found small issue on top of html rendering. view in screen shot.
It may be due to missing doctype on top of page. Add the following doctype on top of page and see output again.
<!doctype html>
<html itemtype="http://schema.org/WebPage" xmlns="http://www.w3.org/1999/xhtml" xmlns:og='http://opengraphprotocol.org/schema/'
xmlns:fb='http://www.facebook.com/2008/fbml'>
In Notepad++ you can change the encoding of the file to "UTF-8 without BOM" from the "Encoding" menu. This fixes the problem for me.
Try this this is the best idea that I know, cheers
<div style="position:absolute;">
<?php include("conn.php"); ?>
</div>
<!DOCTYPE html>