Firtly apologies as i am not a web developer!

Can anyone tell me, or guide me to, the function call or syntax to initialise a download of a file from a URL to a users local machine?

I have looked everywhere i can think of and cant find anything!

Im trying to write a function that recieves a URl and Initiates an install...basially a photo gallery

Any help most appreciated