Forum Moderators: coopster
I have PHP script that I use to put XML/RSS news feeds on my sites, works great, very customizable and easy for noobs. I am gonna post in on my website for people to download but I decided I want to put a link back to my site that will show up at the bottom of the feed. Here is what I added to do that:
(obviously this is just the end of the code, saw no reason to code dump the whole thing-- also examplified)
print ("<p class=\"itemdescription\">" . $rss_channel["items"][$i]["DESCRIPTION"] . "</p>"); }
} else {
print ("<b>There are no articles in this feed.</b>");
}
include ("http://www.example.com/moishe-php-rss.inc");
}
?>
this pulls an include that creates a small text link back to my site but it also adds the characters "" just above it. I am sure its just a formatting issue.
Any ideas?
That string's impossible to search, but it's a byte-order mark (BOM). So you have an encoding problem, probably caused by Notepad or similar adding it when saving as Unicode, but served subsequently with a different character encoding. See this thread for some more details:
[webmasterworld.com...]