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)); }

Want to kickstart your project?Use the new AI Studio to create your code