php includes add unwanted line :S

Hi,
I thought I was finished with my site and uploaded it all, but I seem to have unwanted lines where my php includes are. I have two includes, one for the header, and one for the footer. I’ve tried to find a solution but can’t seem to find one. I don’t know much about coding, but I followed what was in certain tutorials I could find. My website is: www.anjalirao.net, don’t mind the warnings on the blog and Talk Asia pages, I still have to upload my CMS. You can see a space right in the beginning and above my little footer, but if you look at the code, it’s not suppose to be there? Maybe I’m missing something. Please help!

This is one of my pages and how i included the php:

AnjaliRao.net - Everything about Anjali Rao
<?php $current = 1; include("header.php"); ?>
Blog
<?php $cat[] = 'Blog'; $nppage = '30'; $template = 'Blog'; include 'news/index.php'; ?>
<?php include("footer.php"); ?>

And this is my little footer.php:

Please note that I'm not affiliated with Anjali Rao or CNN in any way.

Why does it make an extra line?

Ok, I’ve solved the problem. I red that having a bom in your php files could cause problems, and I also found out that notepad puts them in automatically. So I downloaded notepad++ and converted my php file, and voila no more spaces. Thank you for the forum anyway!

Sponsor our Newsletter | Privacy Policy | Terms of Service