Digital Point Forums
Wester Union

Go Back   Digital Point Forums > Design & Development > Programming
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Aug 7th 2005, 11:08 pm
Ian Ian is offline
Hand of A'dal
 
Join Date: May 2005
Posts: 372
Ian will become famous soon enough
PHP RSS Parser

Anyone have any simple PHP code to parse an RSS feed, most importantly one that allows you to both enable/disable descriptions and select the number of results to be shown? I can't seem to find one that works well and allows me to do this.

Ian
Reply With Quote
  #2  
Old Aug 7th 2005, 11:12 pm
nevetS's Avatar
nevetS nevetS is offline
Evolving Dragon
 
Join Date: Nov 2004
Location: Southern California
Posts: 2,539
nevetS is a name known to allnevetS is a name known to allnevetS is a name known to allnevetS is a name known to allnevetS is a name known to allnevetS is a name known to all
There is magpie on sourceforge and Carp RSS by gecko tribe. There's also code for a php rss parser here in the forums that you can search for. I know Carp best myself, and it's very easy to enable/disable descriptions by just setting a variable before you output the feed.
__________________
Reply With Quote
  #3  
Old Aug 7th 2005, 11:12 pm
dcristo's Avatar
dcristo dcristo is offline
In A Dreamy State
 
Join Date: Nov 2004
Location: Australia
Posts: 13,102
dcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond repute
checkout Carp http://www.geckotribe.com/rss/carp/ it's pretty easy to setup.
Reply With Quote
  #4  
Old Aug 7th 2005, 11:14 pm
dcristo's Avatar
dcristo dcristo is offline
In A Dreamy State
 
Join Date: Nov 2004
Location: Australia
Posts: 13,102
dcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond repute
Quote:
Originally Posted by nevetS
There is magpie on sourceforge and Carp RSS by gecko tribe. There's also code for a php rss parser here in the forums that you can search for. I know Carp best myself, and it's very easy to enable/disable descriptions by just setting a variable before you output the feed.
nevet, would u have any idea about my problem here:
http://forums.digitalpoint.com/showthread.php?t=23851 ?
Reply With Quote
  #5  
Old Aug 8th 2005, 6:52 am
Ian Ian is offline
Hand of A'dal
 
Join Date: May 2005
Posts: 372
Ian will become famous soon enough
Quote:
Originally Posted by dcristo
checkout Carp http://www.geckotribe.com/rss/carp/ it's pretty easy to setup.
I tried that one, and it's a great script but I couldn't figure out how to set the number of items it returns. Do you have any insight on how to set that?

Thanks in advance!

Ian
Reply With Quote
  #6  
Old Aug 8th 2005, 7:08 am
dcristo's Avatar
dcristo dcristo is offline
In A Dreamy State
 
Join Date: Nov 2004
Location: Australia
Posts: 13,102
dcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond repute
Quote:
Originally Posted by Ian
I tried that one, and it's a great script but I couldn't figure out how to set the number of items it returns. Do you have any insight on how to set that?

Thanks in advance!

Ian
That's actually one thing I did figure out...

In the php code, include this line above the CarpCacheShow statement:

CarpConf('maxitems',10);

change the 10 to whatever you want to change the max items to.

cheers
Reply With Quote
  #7  
Old Aug 8th 2005, 7:36 am
xstorm xstorm is offline
Peon
 
Join Date: Jul 2005
Posts: 6
xstorm is on a distinguished road
thanks for the info on carp. useful for me
Reply With Quote
  #8  
Old Aug 8th 2005, 7:46 am
WhatiFind's Avatar
WhatiFind WhatiFind is offline
offline
 
Join Date: Nov 2004
Location: AMS
Posts: 1,792
WhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud ofWhatiFind has much to be proud of
This code is very easy to use: http://forums.digitalpoint.com/showt...light=rss+easy
__________________
it's too late..
Reply With Quote
  #9  
Old Aug 18th 2005, 1:35 pm
daed daed is offline
Grunt
 
Join Date: Jul 2005
Location: Alabama
Posts: 93
daed is an unknown quantity at this point
I've been using MagpieRSS lately, seems to do an awesome job so far.. and I love the caching.
Reply With Quote
  #10  
Old Aug 18th 2005, 2:49 pm
sarahk's Avatar
sarahk sarahk is offline
iTamer
 
Join Date: Mar 2004
Location: itamer @ Fibs
Posts: 9,579
sarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond repute
Phone Verified
Even the big systems use Magpie, it's highly recommended
Reply With Quote
  #11  
Old Aug 18th 2005, 3:20 pm
Josh's Avatar
Josh Josh is offline
Twilight Vanquisher
 
Join Date: Dec 2004
Location: Dillwyn, VA
Posts: 893
Josh will become famous soon enoughJosh will become famous soon enough
Another great (very simple) one that I use for parsing daily-content RSS feeds and such,
http://www.globalsyndication.com/rss-parser


Josh
__________________
I'm Josh. And after a year and of half of absence, I'm back!

join diggboss or invite link 2
Reply With Quote
  #12  
Old Aug 18th 2005, 5:37 pm
ferret77's Avatar
ferret77 ferret77 is offline
Heretic
 
Join Date: Apr 2004
Location: A Tropical Island
Posts: 5,276
ferret77 is a jewel in the roughferret77 is a jewel in the roughferret77 is a jewel in the rough
rss fetch

allows you to set the number of results
Reply With Quote
  #13  
Old Aug 18th 2005, 5:39 pm
sarahk's Avatar
sarahk sarahk is offline
iTamer
 
Join Date: Mar 2004
Location: itamer @ Fibs
Posts: 9,579
sarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond repute
Phone Verified
they all do that don't they?
Reply With Quote
  #14  
Old Aug 18th 2005, 6:18 pm
dcristo's Avatar
dcristo dcristo is offline
In A Dreamy State
 
Join Date: Nov 2004
Location: Australia
Posts: 13,102
dcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond repute
Quote:
Originally Posted by sarahk
they all do that don't they?
Pretty much... I know carp does.
Reply With Quote
  #15  
Old Aug 18th 2005, 8:51 pm
daed daed is offline
Grunt
 
Join Date: Jul 2005
Location: Alabama
Posts: 93
daed is an unknown quantity at this point
Number of results? That can be done with 1 line of code in any programming language.
Reply With Quote
  #16  
Old Aug 18th 2005, 8:54 pm
dcristo's Avatar
dcristo dcristo is offline
In A Dreamy State
 
Join Date: Nov 2004
Location: Australia
Posts: 13,102
dcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond reputedcristo has a reputation beyond repute
Quote:
Originally Posted by daed
Number of results? That can be done with 1 line of code in any programming language.
we're all techies
Reply With Quote
  #17  
Old Aug 19th 2005, 9:45 pm
SpeedyDomainRegistration SpeedyDomainRegistration is offline
Champion of the Naaru
 
Join Date: Jan 2005
Location: In my Domain
Posts: 170
SpeedyDomainRegistration is on a distinguished road
Magpie is the best so far

Magpie is the best that I've used so far.
Few php lines of codes needed to use and very flexible.
Another nice feature is that magpie cache the result so that you don't issue too many requests and upset the feed owner.

Highly recommended!

Magpie download at http://magpierss.sourceforge.net/

If you need example code on how to use it, let me know.


_________________
PHP Hosting | Pagerank Checker Tool | Free Web Hosting | Web Master Resource Center
Reply With Quote
  #18  
Old Sep 2nd 2005, 1:39 pm
SiCK's Avatar
SiCK SiCK is offline
Hand of A'dal
 
Join Date: Sep 2005
Posts: 441
SiCK is on a distinguished road
http://www.feedforall.com/free-php-script.htm

I hacked it in 10 minutes and how do things like this:

Code:
showrss('http://search.msn.com/results.aspx?='.$keywordplus.'&format=rss', '

            ~~~BeginItemsRecord~~~
<A h ref="~~~ItemLink~~~">~~~ItemTitle~~~</A><br>
            ~~~ItemDescription~~~<BR>
            <p>
            ~~~EndItemsRecord~~~
',10);
The 10 is the # of records to return

If you are a newbie programmer in PHP, it might take longer than 10 minutes to get something useful from this.
Reply With Quote
  #19  
Old Sep 2nd 2005, 7:51 pm
odditysoftware's Avatar
odditysoftware odditysoftware is offline
Twilight Vanquisher
 
Join Date: Aug 2005
Location: St. Louis, MO
Posts: 930
odditysoftware is on a distinguished road
magpie is the easiest to impliment from my experiences.
__________________
Website Databases | Expired Domains |
Reply With Quote
  #20  
Old Mar 5th 2007, 11:08 pm
drvo drvo is offline
Peon
 
Join Date: Feb 2007
Posts: 11
drvo is on a distinguished road
I need help on MAGPIE installation, how to implement and integrate in the easiest way to some web page? Is there some easy tutorial for it ?

Thank you
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS Parser with Cold Fusion? TwisterMc ColdFusion 4 Jul 31st 2005 5:49 pm
PHP RSS Parser mortgage-pro-seo PHP 9 Jul 15th 2005 8:39 am
PHP and my RSS feed. {need help} rurbaniak PHP 4 May 19th 2005 1:47 pm
Php Rss 0.91.dtd parser dispklaying on html? cashplanet XML & RSS 2 Jul 19th 2004 7:32 am


All times are GMT -8. The time now is 5:35 pm.