Showing posts with label php rss curl. Show all posts
Showing posts with label php rss curl. Show all posts

Monday, 7 April 2008

php to pull down rss feeds with cURL

Here is three lines of PHP to pull down RSS feeds:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
'http://www.somewebsite.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$contents = curl_exec ($ch);