DLR Posted July 26, 2006 Share Posted July 26, 2006 HI,THis one has me beat. I want to have a viewer click a button and then download a file (an ebook) from my domain to their computer. I will protect the download with a password - but what is the command to activate the download?I have searched and searched!Appreciate your help. Quote Link to comment https://forums.phpfreaks.com/topic/15738-how-do-i-get-a-viewer-to-download-a-file-from-my-site/ Share on other sites More sharing options...
fenway Posted July 27, 2006 Share Posted July 27, 2006 You need to serve the download... I'm sure there are lots of scripts available, or you could roll your own. Ultimately, you just need to serve appropriate headers and spit out the file contents in-stream. Quote Link to comment https://forums.phpfreaks.com/topic/15738-how-do-i-get-a-viewer-to-download-a-file-from-my-site/#findComment-64680 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.