I have a working RSS Feed on my site using the code below but what I would like to add is to have my personal icon to show on the the url address bar in the browser.
<?php define ('CONFIG_SYSTEM_URL','http://www.mydomain.tk/');
require_once('feedcreator/feedcreator.class.php');
$feedformat='RSS2.0';
header('Content-type: application/xml');
$rss = new UniversalFeedCreator();
$rss->useCached();
$rss->title = "daily news feed";
$rss->cssStyleSheet='';
$rss->description = 'this feed is from me';
$rss->link = CONFIG_SYSTEM_URL;
$rss->syndicationURL = CONFIG_SYSTEM_URL.'feed.php';
$articles=new itemList();
foreach ($articles as $i) {
$item = new FeedItem();
$item->title = sprintf('%s',$i->title);
$item->link = CONFIG_SYSTEM_URL.'item.php?id='.$i->dbId;
$item->description = $i->Subject;
$item->date = $i->ModifyDate;
$item->source = CONFIG_SYSTEM_URL;
$item->author = $i->User;
$rss->addItem($item);
}
print $rss->createFeed($feedformat);
?>
The code below work on other PHP pages if I add in the area but if I add that to the RSS page there's an error. If I am not mistaken it is because the RSS is being rendered as XML?
<head> <title>Other page works with icon but rss wont</title> <link rel="shortcut icon" href="images/myicon.ico"> </head>
Anyone can help me on how to change the icon on URL bar if on RSS? Thanks.