Return to Snippet

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

Initial Code
   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 but there are plenty of times where you want to use someone else's feed.  Check out to understand the rest.

Initial Title
PHP: Capture RSS feed

Initial Tags

Initial Language