I don't want to use this function because to it's unavailability on some servers for security reasons, how can i replace file_get_contents() with cURL ?
The line below is causing me a problem on my server :
$response = file_get_contents('http://images.google.com/images?hl=en&q=' . urlencode ($query) . '&imgsz=' . $size . '&imgtype=' . $type . '&start=' . (($page - 1) * 21));
How can i replace the line with another one that uses curl so it will work on every server ?