file_get_contents cURL replacement

Some hosting providers disable file() and file_get_contents() by default. However, cURL should still be available. If that is the case you can use this function as a replacement for file_get_contents().