Home / PHP’s file_get_contents and CURL functions

PHP’s file_get_contents and CURL functions

This is a summary of the posts I've written about PHP's file_get_contents functions when used to download remote content (e.g. webpages, XML files, images etc) and the CURL functions which are used to do the same thing.

PHP Manual Pages

As always, don't forget to read the manual pages from the PHP manual; they don't always cover everything that well and are sometimes lacking in examples but always make a good starting point when wanting to know how a particular function works. The user submitted comments are often useful too.

file_get_contents() posts

CURL