Displaying data from other sites? RSS, XML and stuff...

Discussion in 'PHP' started by lui2603, Jul 12, 2007.

  1. #1
    How can I display RSS feeds from other sites with PHP?
    I have been searching around the internet for so long and I can't find any tutorials or information on making your own RSS Parser thingy or how they work :/
    All I have found is some scripts which display ads to their site at the bottom of every RSS feed I want to display and it looks quite unprofessional...
    Also, they rely on a remotely hosted javascript file to display the feed.

    Can anyone point me to any tutorials where I can learn to do this with my own code so I don't have to rely on another script?

    Another thing I need to know is how to display search results from other search engines.
    Is it done in the same way?
    Like, displaying googles search results, list of links, titles and descriptions...

    Also there are torrent search engines which grab results from several different torrent sites and display them on one page. Anyone know how they do it?

    Thanks!
     
    lui2603, Jul 12, 2007 IP
  2. JOGS_DEV

    JOGS_DEV Peon

    Messages:
    136
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The easiest way to parse an RSS feed with PHP is to use SimpleXML extension. However it requires PHP 5. You can find more info at www.php.net/simplexml
     
    JOGS_DEV, Jul 12, 2007 IP
  3. JOGS_DEV

    JOGS_DEV Peon

    Messages:
    136
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    To display search results from search engines, like Yahoo and Google, you will have to use their own API interfaces. They provide it for free, you would just need to register for API Keys. Both Google and Yahoo have tons of manuals on how to use their APIs. More info at code.google.com or developer.yahoo.com
     
    JOGS_DEV, Jul 12, 2007 IP
  4. Fl1p

    Fl1p Active Member

    Messages:
    511
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Fl1p, Jul 12, 2007 IP