![]() |
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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.
__________________
|
|
#3
|
||||
|
||||
|
checkout Carp http://www.geckotribe.com/rss/carp/ it's pretty easy to setup.
|
|
#4
|
||||
|
||||
|
Quote:
http://forums.digitalpoint.com/showthread.php?t=23851 ? |
|
#5
|
|||
|
|||
|
Quote:
Thanks in advance! Ian |
|
#6
|
||||
|
||||
|
Quote:
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 |
|
#7
|
|||
|
|||
|
thanks for the info on carp. useful for me
|
|
#8
|
||||
|
||||
|
This code is very easy to use: http://forums.digitalpoint.com/showt...light=rss+easy
__________________
it's too late.. |
|
#9
|
|||
|
|||
|
I've been using MagpieRSS lately, seems to do an awesome job so far.. and I love the caching.
|
|
#11
|
||||
|
||||
|
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 |
|
#12
|
||||
|
||||
|
rss fetch
allows you to set the number of results |
|
#13
|
||||
|
||||
|
they all do that don't they?
|
|
#14
|
||||
|
||||
|
Quote:
|
|
#15
|
|||
|
|||
|
Number of results? That can be done with 1 line of code in any programming language.
|
|
#16
|
||||
|
||||
|
Quote:
|
|
#17
|
|||
|
|||
|
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 |
|
#18
|
||||
|
||||
|
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);
If you are a newbie programmer in PHP, it might take longer than 10 minutes to get something useful from this. |
|
#19
|
||||
|
||||
|
magpie is the easiest to impliment from my experiences.
|
|
#20
|
|||
|
|||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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 |