I would like to get images from other websites.
This is my current method but I'm not sure if it is alright.
<?php
header('Content-Type: '.image_type_to_mime_type(exif_imagetype($_GET['url'])));
echo(file_get_contents($_GET['url']));
?>
If not, how should I do it?