Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   PHP (https://www.askmehelpdesk.com/forumdisplay.php?f=454)
-   -   How do I display news from rss feed from another site using PHP. (https://www.askmehelpdesk.com/showthread.php?t=480507)

  • Jun 17, 2010, 11:35 AM
    Nzou
    How do I display news from rss feed from another site using PHP.
    I am doing a project in wich I'm developing an auction site. To atract visitors I want to add news on the site. I am trying to include an rss feed from allafrica.com using something lyk this:

    Include "http://allafrica.com/.../headlines.xml";

    It only displays unformated xml code. How do I make it display properly formated news? I'm using xampp for the server.
  • Jun 18, 2010, 01:42 PM
    Nzou

    Is what I'm trying to do even posible in any way. I saw there are those rss reader sites but do they give good formated output for my webpage and how do I use them?
  • Jun 23, 2010, 01:38 AM
    rpray2007
    You can do it but not the way you are attempting. Instead, you could use CURL which is a great way to send GET variables. You can't include an XML file within a PHP file - this will result in a syntax error.


  • Jul 14, 2010, 06:00 AM
    Sourcebits
    Please see php simple_xml_dom parser in php. If no php experience, you may search for RSS reader in php from web.

  • All times are GMT -7. The time now is 06:17 AM.