|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Articles
Join Date: Apr 2001
Posts: 0
|
Article Discussion
This is an article discussion thread for discussing the SitePoint article, "PHP and XML: Parsing RSS 1.0"
|
|
|
|
|
|
#2 |
|
SitePoint Member
Join Date: Feb 2005
Location: london
Posts: 1
|
A great article - exactly what I needed. In addition, could anyone tell me how to limit the number of items that are displayed. For example, if I wanted to list just the latest three items from a feed that has 25 items listed, how would I tell the parser to stop at 3?
Thanks Gareth |
|
|
|
|
|
#3 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Apr 2001
Location: Michigan
Posts: 382
|
Great Article! One of the best on this subject.
|
|
|
|
|
|
#4 |
|
SitePoint Zealot
![]() ![]() Join Date: Mar 2005
Posts: 118
|
Very timely! I have been looking for a replacement for the excellent MagpieRSS, and the only real option at this stage seems to be writing our own RSS reader.
|
|
|
|
|
|
#5 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Aug 2004
Location: Bangkok
Posts: 529
|
This article worked perfectly for me with fopen enabled. But my webhost has fopen disabled. I had to plug in the following code to get it to work without using fopen:
PHP Code:
|
|
|
|
|
|
#6 | |
|
SitePoint Enthusiast
![]() Join Date: Jan 2005
Location: California
Posts: 28
|
Quote:
thanks |
|
|
|
|
|
|
#7 |
|
SitePoint Member
Join Date: Aug 2005
Posts: 6
|
Never mind. I had the rdf extention marked wrong. Works like a charm.
|
|
|
|
|
|
#8 |
|
SitePoint Member
Join Date: Jul 2009
Posts: 6
|
if the file is remote, you can grab the xml content with cURL or fsocketopen
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 01:36.








Hybrid Mode
