Skip to content

Instantly share code, notes, and snippets.

@ataylorme
Created November 17, 2012 22:38
Show Gist options
  • Save ataylorme/4100880 to your computer and use it in GitHub Desktop.
Save ataylorme/4100880 to your computer and use it in GitHub Desktop.
Curl request to get xml from rss feed
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'FEEDURL');
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$feed = curl_exec($ch);
curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment