I need a basic PHP script for music file (mp3's in .zip format) delivery.
The script will work as follows:
1. User enters a validation key code into a text box.
2. Script takes this code, looks it up in a database.
3. Based on the code entered, a download link is provided to the user (This link needs to be masked).
4. User downloads file and the keycode is marked as used in the database and cannot be used again.
There are also a few basic back-end options I would like included, a way to upload files to my webspace and generate a predetermined amount of random download codes (say 12 characters) for that file.