Re: How to open and read "feed:" in PHP?



On Nov 30, 1:23 am, taps128 <nstje...@xxxxxxxxx> wrote:
eastcoastguyzwrote:
I'm very new to RSS. I was given a URL that starts with "feed:". I
want to be able to open this and read in its content into a PHP
program to produce a report. I'm not interested in converting it to
HTML.

Question: Is a URL that starts with feed: output XML?

Question: How do I open a feed: URL in PHP and parse it?

Thanks!

Edward

Open it using fopen, file_get_contects or curl, and read it using
simpleXML, or XMLReader.

Thanks for your posting.

I looked at the example for simpleXML on the php.net web site. I was
able to get the first example working. So I'm starting to understand
how this might work.

I have some questions. That example.php looks to be XML with a PHP
envelope (for lack of a better term) around it and then it has a call
to XML with "XML;". Since I'm new to this, that is a little confusing
as an example. How would that example be if it was reading from a
rss.xml file? And what about the "XML;" call?

Thanks everyone!

Edward

.



Relevant Pages

  • Re: How to open and read "feed:" in PHP?
    ... Question: Is a URL that starts with feed: output XML? ... Question: How do I open a feed: URL in PHP and parse it? ... I looked at the example for simpleXML on the php.net web site. ... That's because SimpleXML alows you to navigate the xml tree as you wish, foroward and backwards how many times you like. ...
    (comp.lang.php)
  • Re: How to open and read "feed:" in PHP?
    ... Question: Is a URL that starts with feed: output XML? ... Question: How do I open a feed: URL in PHP and parse it? ... Now you have a SimpleXML object named $rss which you can use to iterate. ... SimpleXML alows you to navigate the xml tree as you wish, ...
    (comp.lang.php)
  • php XML parser similar to PERLs XML::Simple
    ... I currently use XML::Simple module in PERL code that handles XML ... I'm considering converting all code to php. ... The web service uses XML to communicate with an application ...
    (php.general)
  • Re: Ruby performance woes
    ... Now here's my take on all this: PHP and JSP and what I inquired ... S-expressions used as a directly alternate expression of SGML or XML. ... By the way, I've never had access to a Web server that can run ASP, ...
    (comp.lang.lisp)
  • Re: Object Oriented Content System - the idea
    ... >I expected php to be smarter then that. ... >form like bytecode in memory for the next request. ... each action added some stuff to a "response" XML document. ... that map/object/data and formats it for HTML display using an includeed PHP ...
    (comp.lang.php)