Need a Caching program

Discussion in 'Programming' started by MelogKnaj, Nov 21, 2008.

  1. #1
    I need a method to automatically take articles from a sites RSS feed, and then save a cached version to host on my site, similar to what google does. I don't even need the actual code to do this, I just need you to point me in the right direction and show me what I should be looking at. First person that can help me gets $5.00 via paypal. Thanks in advance.
     
    MelogKnaj, Nov 21, 2008 IP
  2. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    use php file_get_contents(); to get the feed,
    then use preg_match & explode & other string handling functions to extract the pure links
    then you use file_get_contents(); again to fetch each article,
    then use preg_match & explode & other string handling functions to extract the pure articles
    then use fopen()/fwrite()/fclose() to write the stuff into textfile or hand it into your database
     
    happpy, Nov 21, 2008 IP
  3. nts

    nts Active Member

    Messages:
    220
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    nts, Nov 21, 2008 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    As Seller:
    100% - 0
    As Buyer:
    100% - 3
    #4
    Download magpie from sourceforge.

    Then modify the open souce GPL content to do whatever you want. It already has cache.
     
    Colbyt, Nov 22, 2008 IP