skip to main | skip to sidebar




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);
Posted by Admin at 07:23
Labels: php rss curl

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (18)
    • ►  August (1)
    • ▼  April (10)
      • http://centricle.com/tools/html-entities/
      • How to use Google Translate to offer your website ...
      • Foreign Keys in Mysql
      • mysql privileges to only one database rather than ...
      • print HTML block inside code
      • yahoo yui document page width
      • php and Javascript to rotate an image
      • php to pull down rss feeds with cURL
      • mysql command for creating a primary index
      • php function to submit values to a form
    • ►  March (3)
    • ►  February (4)

About Me

Admin
View my complete profile