I have an rss feed here RSS FEED
My Site
The problem is that on the feed you can see the link "view album" but on my site the link does not work. Any help would be greatly apprecaited. Here is my code:
<?php
$feed_url = "http://picasaweb.google.com/data/feed/base/user/114565750484201639035?alt=rss&kind=album&hl=en_US&access=public";
// INITIATE CURL.
$curl = curl_init();
// CURL SETTINGS.
curl_setopt($curl, CURLOPT_URL,"$feed_url");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
// GRAB THE XML FILE.
$xmlTwitter = curl_exec($curl);
curl_close($curl);
// SET UP XML OBJECT.
// Use either one of these, depending on revision of PHP.
// Comment-out the line you are not using.
//$xml = new SimpleXMLElement($xmlTwitter);
$xml = simplexml_load_string($xmlTwitter);
// How many items to display
$count = 10;
// How many characters from each item
// 0 (zero) will show them all.
$char = 100;
foreach ($xml->channel->item as $item) {
$description = str_replace(array('/>', '<br/><br/>'), array('/><br/>', '<br />'), strip_tags($item->description, '<img><br/>'));
echo '<div>';
echo '<h3>'.$item->title.'</h3>';
echo $description.'<br />';
echo "<span class='redlink' id='redlink' style='redlink'> <a href='{$item->guid}'>read more</a>";
echo '</div>';
}
?>