generate functionThu, 15 Dec 2022

get image from url, save it to disk and return a full url of the image

function get_image($url) { $file_name = basename($url); file_put_contents($file_name, file_get_contents($url)); }

Questions about programming?Chat with your personal AI assistant