Re: How to open and read "feed:" in PHP?
- From: "Rik Wasmus" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 09:04:00 +0100
On Fri, 30 Nov 2007 08:59:50 +0100, eastcoastguyz <eastcoastguyz@xxxxxxxxxxx> wrote:
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
Just to output with PHP script. This will offcourse not be visible when it is requested.
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?
Check the manual for heredoc syntax.
--
Rik Wasmus
.
- References:
- How to open and read "feed:" in PHP?
- From: eastcoastguyz
- Re: How to open and read "feed:" in PHP?
- From: taps128
- Re: How to open and read "feed:" in PHP?
- From: eastcoastguyz
- How to open and read "feed:" in PHP?
- Prev by Date: Re: How to open and read "feed:" in PHP?
- Next by Date: Re: How to get PHP function status?
- Previous by thread: Re: How to open and read "feed:" in PHP?
- Next by thread: Re: How to open and read "feed:" in PHP?
- Index(es):
Relevant Pages
|