<?php // We'll be outputting a .png header('Content-type: image/png'); // It will be called image1.png header('Content-Disposition: attachment; filename="Untitled-2.png"'); ?>
<a href="image1.php"><img src="Untitled-2.png" style="border:0;"></a>
When i click the image and the download begins after i open the image it says that is corrupted. Whats wrong here?
This post has been edited by Bluezap: 18 July 2012 - 07:19 AM