Page 1 of 1

Looking for a download script

Posted: Thu Jul 26, 2007 8:08 am
by writerhoward
I'm new to PHP, but not to programming, and I need a script that can do the following:

1. A user will click the link for a file he wants to download.
2. A new page will appear seeking the user's name and e-mail address.
3. Verify that the name and e-mail address are validly formatted.
4. If they are, take the user to a new page where he can download a file via a Save As box. (If not valid, give user a message.) This page cannot be accessed directly. Also, either store on my server, preferably in a text file, or e-mail to me the name and e-mail address of the downloader.

Anyone know of a good, easy to use PHP script that does the above? If it does more, that's fine.

Thanks,
Howard

Posted: Thu Jul 26, 2007 8:26 am
by miro_igov
Why not write it yourself? It is very simple. To protect the files from direct download use .htaccess or place them out of the web root.

Posted: Thu Jul 26, 2007 10:59 am
by RobertGonzalez
Also try searching these forums for file downloading. There has been some talk of this here in the past.