Here is what I have so far.
<?php
$file = fopen ("http://gullible.info/gullible.rss.php", "r");
if (!$file) {
echo "<p>Unable to open remote file.\n";
exit;
}
while (!feof ($file)) {
$line = fgets ($file, 1024);
/* This only works if the title and its tags are on one line */
if (eregi ("<description>(.*)</description>", $line, $out)) {
$title = $out[1];
echo $title;
break;
}
}
fclose($file);
?>
I am trying to only grab the a section of the RSS feed. Basicly the first <description> tag hold a value about the site, I want to get the second <description> tag and echo that on my page. i tried to mess around to get it, but it did not work and after looking at the code, it just looked goofy. I have no clue how to do this, basicly I just want to store the second description in $title instead of the first 1, could not find a command for next.
thanks for any help.