NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Simple RSS/Atom Aggregator

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-30-2008, 03:53 AM THREAD STARTER               #1 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




Simple RSS/Atom Aggregator


I was looking for a new RSS/Atom aggregator yesterday, and (naturally) my first thought was to set up LAMP on my laptop and code one for myself with PHP and MySQL.
????: NamePros.com http://www.namepros.com/code/528777-simple-rss-atom-aggregator.html

I have screenshots on my blog - but they are slightly outdated, I've changed a few things.

Attached is the source, but just a few notes first:
  • You'll want to comment out the exec() statement in rssupdate.php unless you're running the script on a Linux computer you own - it uses libnotify to pop up a little notification in the bottom right corner if new items are found.
  • You can include rssupdate.php in any other file, and as long as you do it after the call to database(), it won't print the output as it will recognise it is working inside another file.
  • Automating rssupdate.php via cron is a good idea; I have it set to run hourly.
  • I haven't tested this in anything but Opera, so the JavaScript may not work properly in FF or IE.
  • You'll need to fill out your database details in inc/db.inc
  • The SQL for the database is in inc/db.inc

Enjoy!
Attached Files
File Type: zip aggregator.zip (538.0 KB, 11 views)
Barrucadu is offline  
Old 10-30-2008, 04:10 AM   #2 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
thanks, i downloaded a copy.
__________________
Nabaza.com - Amaia
weblord is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 04:03 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger