XML Archive

  • admin

    Read RSS feed XML using CURL in PHP

    // create a new cURL resource $ch = curl_init(); $url = “http://witslog.com/wiki/?feed=rss2″; // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, $url);  // you have to set the url of the website of which you want to get the rss data curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass...

    Full Story