Posted By

chrisaiv on 02/22/09


Tagged

php rss


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

umang_nine
jealousy
xmartyxcorex

techdetours
wirenaught
tof


PHP: Capture RSS feed


 / Published in: PHP
 

AJAX by default only lets you play within your own Domain.com but there are plenty of times where you want to use someone else's feed. Check out http://snipplr.com/view/12466/jquery-parse-rss-feed/ to understand the rest.

  1. <?php
  2. if (!isset($_REQUEST["url"])) exit;
  3.  
  4. $url = $_REQUEST["url"];
  5. if (substr($url, -0, 7) != "http://") exit;
  6.  
  7. ?>

Report this snippet  

You need to login to post a comment.