Return to Snippet

Revision: 11852
at February 22, 2009 14:32 by chrisaiv


Initial Code
<?php
   if (!isset($_REQUEST["url"])) exit;

   $url = $_REQUEST["url"];
   if (substr($url, -0, 7) != "http://") exit;

   echo file_get_contents($url);
?>

Initial URL

                                

Initial Description
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.

Initial Title
PHP: Capture RSS feed

Initial Tags
php

Initial Language
PHP