| |
|
 |
Accept Coupon Codes for Downloads by: sm0ke |
Page: 3 of 3 (View All) |
The download script
The verify file will redirect the user to a download script on your server so the file requested can be downloaded. We have the variables of $domain, $querystring and $redirectstr $domain is the location of your download.php script which is what we are about to look at, the domain must contain "?file=" at the end, the $redirectstr joins the domain and file variables together to give the full URL to which the user is directed.
download.php
And thats it - well, not quite. The script isnt secure, its not meant to protect highly private files / personal files from being downloaded but should give you an insight into accepting coupon codes, verifying that code and requested download against a database and allowing the user to download while deleting the coupon from being used again.
The download script here is one i downloaded from somewhere a good year or so ago, if i remember where or who wrote it ill post the credits later. - You can always secure this script and use a more secure download script to boot. but it should give the basics.
No Comments for this page.
|
 |
Tutorial Stats |
| 6,784 |
Views |
| 0 |
Total Comments |
| 3 |
Rating of 5 (1 Votes) |
|