June 23, 2012 5:07 am

Replace file_get_contents/fopen with cURL

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.

PHP Code

function to get url and return content available on the page.

Using this function is easy, just like file_get_contents function

Author Huzoor Bux

I am Huzoor Bux from Karachi (Pakistan). I have been working as a PHP Developer from last 5+ years, and its my passion to learn new things and implement them as a practice. Basically I am a PHP developer but now days exploring more in HTML5, CSS and jQuery libraries.

Tutorial Categories:
  • lmao


  • Tejas Chuahn

    Thank you and nice work to give your knowledge to people.