I’m excited on how to do the download page similar to premiumpixels.com
Example – http://www.premiumpixels.com/freebies/custom-audio-player-skin-psd/
If we click on “download”:
1) page reloads to url like premiumpixels.com/download/?file=audio-player
2) after some timeout download begins.
3) file downloads from cdn.premiumpixels.com/uploads/audio-player.zip
How do I make the same? How its done on php?
Also, I would like to send some mysql request when download page is opened, to update file downloads stats.
Thanks.
Use Javascript’s
setTimeoutfunction and then redirect the browser to the download resource.Looks like this is the source that site uses: