Wanna add picture download option in my site help me please

Hello Friends,
I want to add photo gallary and wallpaper section in my site so that if i upload any photo and give a download link its show only that picture but its not downloading. Example : If we view any photo in FACEBOOK so we can see a DOWNLOAD option and if we click on that the picture is download , my ques is how can i do like that option? with javascript ? do u know that? then please tell me that :slight_smile:

Thank you In adVance :slight_smile:

There may be other ways, but this one works for me.

$filename = "something.jpg";

header("Content-Length: " . filesize($filename));
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=something.jpg');


Name this short bit of PHP with a name of “something.php” and have this as the target for your download button.

$file = $_GET[‘file’];

header(“Content-Type: application/octet-stream; “);
header(“Content-Transfer-Encoding: binary”);
header('Content-Disposition: attachment; filename=”‘.basename($file).’”');
i get this but will u tell me how can i make download links…

Here is a link that will give you a start on HTML links.