Page 1 of 1

why is  appering on my webpage

Posted: Thu Feb 24, 2011 12:50 pm
by kawakes
To help organize my code I started to use set_include _path and everything ran fine on my local machine. Although, when I uploaded the files to the sever I'm using, I got this ugly symbol ( ) appearing next to the logo and the navigation. I'm not sure if it's due to the set_include_path (I doubt it) but it's annoying the heck out of me.

If I look in the page source, I can see the two places where the ugly symbolizes are being processed from (the text in bold is what php code was processed):

 <img src="/images/logos/alpha3.jpg" alt="alpha" /> <?php include('banner.inc.php') ?>
</div>
<!-- Navigation -->
<div id="nav"> <?php include('nav.inc.php'); ?>
 <ul>
<li>
<a href="/index.php"> Home </a>
</li>

Re: why is  appering on my webpage

Posted: Thu Feb 24, 2011 1:09 pm
by Weirdan
Configure your editor to not include BOM into text files: http://www.google.com/search?q=disable+ ... editorname

Of course you need to substitute 'youreditorname' with the name of text editor you're using

Re: why is  appering on my webpage

Posted: Thu Feb 24, 2011 2:19 pm
by kawakes
I disabled the BOM on my text editor but I'm still getting the weird symbol.

I then retyped one of my pages but it still has the error so I've emailed the server provider I used, considering that I don't get the error on my local machine.

Thanks for the help and I'll make sure to post a reply when the issue becomes resolved.

Re: why is  appering on my webpage

Posted: Thu Feb 24, 2011 3:08 pm
by kawakes
fixed the issue, turned out it had to do with BOM being included, I just hadn't disabled it properly... Thanks again