Jump to content


Photo

How do I get a viewer to download a file from my site?


  • Please log in to reply
1 reply to this topic

#1 DLR

DLR
  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts
  • LocationJohannesburg, South Africa

Posted 26 July 2006 - 08:38 PM

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.

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 27 July 2006 - 03:40 PM

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.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users