Ask Experts Questions for FREE Help !
Ask
    Nzou's Avatar
    Nzou Posts: 62, Reputation: 2
    -
     
    #1

    Jun 17, 2010, 11:35 AM
    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.
    Nzou's Avatar
    Nzou Posts: 62, Reputation: 2
    -
     
    #2

    Jun 18, 2010, 01:42 PM

    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?
    rpray2007's Avatar
    rpray2007 Posts: 319, Reputation: 23
    Full Member
     
    #3

    Jun 23, 2010, 01:38 AM
    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.


    Sourcebits's Avatar
    Sourcebits Posts: 1, Reputation: 1
    New Member
     
    #4

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

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

RSS feed [ 1 Answers ]

What's RSS feed? And how do I set it up on my site?

What is RSS Feed? [ 1 Answers ]

What is RSS Feeds? Why we use it? Anybody can explain me :) I have little idea about it but I don't understand main purpose of it... Thanks in advance :o

Call dll funciton from php when the site is hosted in non-windows server [ 1 Answers ]

I want to develop a website in php using databas MySQL because hosting this way is very cheap. The prblem is that if my php page is hosted on some server running operating system other than windows e.g. Linux then my php page might not be able to call and windows's dll function as .exe files of...


View more questions Search