Looking for a download script

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
writerhoward
Forum Newbie
Posts: 1
Joined: Thu Jul 26, 2007 7:56 am

Looking for a download script

Post 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
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Also try searching these forums for file downloading. There has been some talk of this here in the past.
Post Reply