why is  appering on my webpage

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kawakes
Forum Newbie
Posts: 5
Joined: Wed Feb 23, 2011 4:21 pm

why is  appering on my webpage

Post 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>
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: why is  appering on my webpage

Post 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
kawakes
Forum Newbie
Posts: 5
Joined: Wed Feb 23, 2011 4:21 pm

Re: why is  appering on my webpage

Post 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.
kawakes
Forum Newbie
Posts: 5
Joined: Wed Feb 23, 2011 4:21 pm

Re: why is  appering on my webpage

Post by kawakes »

fixed the issue, turned out it had to do with BOM being included, I just hadn't disabled it properly... Thanks again
Post Reply