Limit a download to once - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Limit a download to once

An AmericanAn American Posts: 2Member
I found this PHP downloader...
I'm using it like this: a person purchases an image going to paypal, then the image is opened to dowmload but I want them to be able to only download it once.

Thanks for any help

Comments

  • ITAITA Posts: 463Member
    You could do it like this: store a 'true/false' value in a database which determines whether the user has downloaded the image or not. If they've downloaded, set it to true.

    Then, when they go along, authenticate them or something, and then check to see if the value is 'true' or 'false'. If it's 'true' don't let them download, otherwise, let them download.

    Hope this helps.

    Isaac

    "Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"

Sign In or Register to comment.