LiveJournal bug
Ya, thats right. I am having a HARD time figuring out this bug. I know the string is being constructed correctly (it echos out correctly) and the method of processing the feed works (its the same as I use for blogger).
It works on my system but not on the server (uses exact same file and database).
It works on my system but not on the server (uses exact same file and database).
echo "<h3>LiveJournal</h3>";
if (mysql_num_rows($result) == 0)
die ("This user has no friends using LiveJournal.");
for ($i = 0; $i < mysql_num_rows($result); $i++){
$row = mysql_fetch_row($result);
for ($j = 0; $j < mysql_num_fields($result); $j++)
{
//echo $row[$j];
$url = 'http://www.livejournal.com/users/'.$row[$j].'/data/rss/index.rss';
//echo $url;
$rss = fetch_rss($url);
echo "<div class=nav><h3><a href=",$rss->channel['link'],">", $rss->channel['title'], "</a></h3><b>",$rss->channel['description'],"</b><p>\n";
$disnum = 0;
foreach ($rss->items as $item ) {
if ($disnum < 5) {
$title = $item[title];
$url = $item[link];
//$desc = $item[content][encoded];
$desc = $item[description];
//$summ = $item[summary];
echo "<div><a href=$url>$title</a><br>$desc</div><p> \n";
$disnum++;
}
}
echo "</div>";
}
}




0 Comments:
Post a Comment
<< Home