Help!! Rss Feeds

Discussion in 'General Scripting Chat' started by carter7984, Jan 31, 2010.

  1. carter7984

    carter7984 Junior Member

    Joined:
    Aug 13, 2008
    Messages:
    109
    Likes Received:
    19
    Hi...

    Question:

    I have a wallpaper site and I want to make it have an rss feed, so that whenever I add new wallpapers (and existing wallpapers) it will submit it to RSS feeds...

    http://wallpaperscript.com/other-features.php

    has it...

    how do i get this?!

    thanks!
     
  2. n2zen

    n2zen Regular Member

    Joined:
    Sep 27, 2009
    Messages:
    269
    Likes Received:
    70
    Lotsa ways, but how about:

    PHP:
    Get the RSS writer class -  http://www.phpclasses.org/browse/package/560.html

    Find the section:
    $properties=array();
        
    $properties['description']='Latest components made available';
        
    $properties['link']='http://www.phpclasses.org/browse/latest/latest.xml';
        
    $properties['title']='Latest class entries';
        
    $properties['dc:date']='2002-05-06T00:00:00Z';
        
    $rss_writer_object->additem($properties);
        
    $properties['description']='Latest book reviews released';
        
    $properties['link']='http://www.phpclasses.org/reviews/latest/latest.xml';
        
    $properties['title']='Latest reviews';
        
    $properties['dc:date']='2002-05-06T00:00:00Z';
        
    $rss_writer_object->additem($properties);

    For 
    meI'd use a stored procedure to autogenerate that chunk of code every time a new product record was inserted.

    Finally wrap it into a handy lil php script, set cron to run it every x number of minutes/hours and voila, done.
    No, it's not an easy peasy solution like adding a counter or clock script, sorry.