RSS & PHP Help For A Newbie

Discussion in 'XML & RSS' started by tomojunior, Apr 7, 2006.

  1. #1
    Hi All,

    Playing around a bit with RSS & PHP on 100% html site...and have what many of you will consider an absolute "duh" question. Here's a quick rundown.

    Found a nice PHP script (with a nice "how to") to fetch an RSS feed from a website, store it, parse appropriate data out of that feed, and converted html on the web page of my choosing.

    Followed the "how to", uploaded the PHP to my server and then came to this statement:

    ...point your web browser at the file.

    Here's my question: Does that mean using an include on the web page I want to have the feed....or something else?

    Thanks
     
    tomojunior, Apr 7, 2006 IP
  2. Slapyo

    Slapyo Well-Known Member

    Messages:
    266
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    You either have to go to the page that you uploaded, or you have to include that file, and then view the file you included it in.
     
    Slapyo, Apr 7, 2006 IP
  3. BlueDevilMedia

    BlueDevilMedia Well-Known Member

    Messages:
    1,917
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    190
    #3
    Not sure what you meant here, however, your website that you want the RSS feeds to show on should include somwthing similiar to this:

    <?php
    require_once '/home/submissi/carp/carp.php';
    /*** Setup Code ***/
    CarpConf('cache-method','mysql');
    CarpConf('mysql-connect',1);
    CarpConf('mysql-database','submissi_carpdb');
    CarpConf('mysql-username','submissi');
    CarpConf('mysql-password','issiondes378');
    /*** End Setup Code ***/
    // Add any desired configuration settings below this line using "CarpConf" and other functions
    CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss');
    ?>

    This will vary according to what script you are using though. I use CARP, it's free and easy to setup!
     
    BlueDevilMedia, Apr 7, 2006 IP