Skip to content

Instantly share code, notes, and snippets.

@THEtheChad
Created October 24, 2011 20:21
Show Gist options
  • Save THEtheChad/1310049 to your computer and use it in GitHub Desktop.
Save THEtheChad/1310049 to your computer and use it in GitHub Desktop.
A simple, multi-purpose PHP feed proxy.
<?php
$session = curl_init($_GET['url']);
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
$xml = curl_exec($session);
header("Content-Type: text/xml");
echo $xml;
curl_close($session);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment