Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.