Is there any way through the Curl request to know if it's an image or not?
$ch = curl_init($image_url);
$name = generateRandomString();
$fp = fopen($caminho.'/'.$name.'.png', 'wb');
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT...
asked by
21.08.2017 / 19:32