generate functionThu, 15 Dec 2022

download image from url and return a full url of the image

function download_img($url): $img = curl_init($url); curl_setopt($img, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($img); return $result;

Questions about programming?Chat with your personal AI assistant