How i can check /difference in Rss feed thought required

Discussion in 'PHP' started by ironmankho, Jul 11, 2013.

  1. #1
    HI everyone

    How i can check /difference in Rss feed thought required

    honestly i am clueless :( no totally stacked

    here is Hd wallpapers Rss feed

    _http://hdw.eweb4.com/latest.rss

    This feed may change in minute may be in hour OR day

    can any body have idea/suggestion how i can easily build a script that can check difference
     
    Solved! View solution.
    ironmankho, Jul 11, 2013 IP
  2. EmmanuelFlossie

    EmmanuelFlossie Active Member

    Messages:
    159
    Likes Received:
    11
    Best Answers:
    2
    Trophy Points:
    65
    #2
    You can do this by storing the date to mysql
    Here is how to extract the date

    
    <?php
    $html = file_get_contents('http://hdw.eweb4.com/latest.rss');
    preg_match('/<lastBuildDate>(.*)<\/lastBuildDate>/i', $html, $lastBuild);
    echo $lastBuild[1];
    ?>
    
    Code (markup):
     
    EmmanuelFlossie, Jul 11, 2013 IP
  3. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Thanks :)
    but it is only give " Thu, 11 Jul 2013 21:32:30 +0300 "
    i want changes in new files and want to getting
     
    ironmankho, Jul 11, 2013 IP
  4. #4
    EmmanuelFlossie, Jul 11, 2013 IP