Allow user to download external image using PHP
问题 I set it up so a user can download an image with the click of a button if it's hosted on my site, but it doesn't work for external images. Is it possible to do this with external images (using the URL) without first copying it to a folder on my servers? This is what I use for images on my own site. $str = $_GET['image']; $img_name = substr(strrchr($str, '/'), 1); $image = "../u/i/".$img_name; if (file_exists($image)) { header('Content-Description: File Transfer'); header('Content-Type: