Some web hosts disable file_get_contents function. Most of them have curl library installed. This post help you to replace function for file_get_contents, using CURL library.
function to get url and return content available on the page.
Thank you and nice work to give your knowledge to people.