Give help. Get help.

  • # April 15, 2013 at 11:25 am

    I want to create a redeem code area on a website I’m working on, that when a user punches in their unique download code (I’ll be emailing this across to the users) it generates a unique URL that allows them to download a file for a 24-48 hour period.

    Any idea of how I approach this?

    Thanks in advance, any help is appreciated.

    # April 15, 2013 at 11:40 am

    One way you could go about it is store the unique code with a unix time stamp that it should expire on in a database then have a page that gets the code out of the address bar using $_GET then query the database for the code and see if the current time is within the time allowed using the unix time stamp.

    # April 15, 2013 at 9:39 pm

    @blackhawkso Could you point me in the direction of how to do something like this? Sorry, I’m new to this.

    # April 19, 2013 at 12:58 pm

    I’ve made a blog post that should give you what you need [](

    Hope it helps you.

    # June 7, 2013 at 12:38 pm

    @blackhawkso OMG! So sorry I didn’t see this notification until now. Thanks soooooo much for doing this.

    I’m actually just trying to get through it now. Do you mind uploading the files you used as I’m having a little difficulty tying it all together.

    # June 8, 2013 at 12:40 pm

    I’ve added a download link for you so you can get a version of the code.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.