i am interested in learning in making a php script asks to save a file.

you know when you visit sites like blogger.com and when you click on the image, it ask you to save the image/picture file automatically

how is that done?