Using PHP cURL to read RSS feed XML
A very common fact is that feeds are getting very popular nowadays and we search for ways to easily access and parse those feeds using PHP. In order to parse feeds, you need to get then first and a very popular tool for handling HTTP connections is cURL library. By using this library, one get data feeds from any page on the Internet, it hardly matters whether the data is password protected or requires to POST some data.
If you are using curl on windows, you just need to uncomment it in the “php.ini" file. Else, on Linux you need to compile PHP with –with-curl.
The following step shows you how to connect to some RSS feeds with curl and for that you need to init curl resource handle as below;
$ch = curl_init("https://localhost/curl/rss.xml");