Limit a download to once

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


  • 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.


    "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.

Howdy, Stranger!

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


In this Discussion