Code: Select all
<img src="img.php?size=450&type=2&filename=abcdef.jpg" alt="Image">I've played around with header('Content-disposition'); but I don't think this is what I want.
Moderator: General Moderators
Code: Select all
<img src="img.php?size=450&type=2&filename=abcdef.jpg" alt="Image">Code: Select all
header('Content-disposition: attachment;filename=' . $_GET['filename'] . ';');Code: Select all
header('Content-disposition: attachment; filename=up/filename.jpg;);