If you look here at the right, see where it says "My Blog from Blogger.com"? It's the blog post titles linked to those posts. I want to do something similar, where just the titles of the posts are listed (and also having a way to say how many to list, instead of listing them all, would be nice too).

The RSS I'd like to get the list from is here

    If you're using PHP5, the [man]simpleXML[/man] functions are pretty...well...simple to use.

      My host is running PHP Version 4.4.4

        There are a plethora of php rss classes if you google "php rss"

          SeenGee wrote:

          i'd recommend magpie rss myself, feature rich and easy to implement.

          I tried that before, and it's not exactly what I wanted.

            Don't know how much help this will be, but here's some PHP4 code I threw together quickly some time ago to display some stuff from the php.net RSS feed. Perhaps it will give you some ideas. It's kind of "brute force", probably is not how I'd code it now, but it works.

            <h3>Latest News from <a href="http://www.php.net/">PHP.net</a></h3>
            <?php
            $text = file_get_contents("http://www.php.net/news.rss");
            preg_match_all('/<item\s.*<title>(.*)<\/title>.*<\/item>/iUs', $text, $matches);
            $titles = $matches[1];
            preg_match_all('/<item\s.*<link>(.*)<\/link>.*<\/item>/iUs', $text, $matches);
            $links = $matches[1];
            preg_match_all('/<item\s.*<description>(.*)<\/description>.*<\/item>/iUs', $text, $matches);
            $descriptions = $matches[1];
            preg_match_all('/<item\s.*<dc:date>(.*)<\/dc:date>.*<\/item>/iUs', $text, $matches);
            $dates = $matches[1];
            $count = 0;
            foreach($titles as $key => $title)
            {
               echo <<<EOD
            <h4>$title <span style="font-weight: normal">({$dates[$key]})</span></h4>
            <p>{$descriptions[$key]} (<a href="{$links[$key]}">more...</a>)</p>
            EOD;
              if(++$count >= 3)
              {
                break;
              }
            }
            ?>
            
              Write a Reply...