Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1072811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:54:41+00:00 2026-05-16T20:54:41+00:00

I am using PHP and MySQL and I want to sell my Digital EBooks

  • 0

I am using PHP and MySQL and I want to sell my Digital EBooks on line. I want to give a Download Link to my clients who buys my EBook but I want to secure my digital download links to work for only 3 times and the Download Link should be deleted automatically after 24 hours or after 3 tries to downloads.

How can I fulfill this requirement.

Since I don’t want to buy any Digital Download Service. I want to create my own.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:54:41+00:00Added an answer on May 16, 2026 at 8:54 pm

    At the point that they make a purchase, generate a unique identifier and incorporate this in the URL.

    Then when that URL is visited, lookup the code, see when it was created and how many times its been used, and either send the content or an error, accordingly.

    To expand on this:

    User visits your site, buys somecontent.txt, and pays their money. You then generate a random string and give them a link that looks like:

    http://www.yoursite.com/download?content=somecontent.txt&authKey=fdkjhwsiufhwaoeuhfq

    where the string at the end is the one you generated, and stored in the DB.

    At some time later, the buyer uses the link. Your code then goes ‘Aha! – that code was created as a result of the user Fred buying some content. His payment was received, and its the first time its been downloaded, so I’ll send him the file, and increment the counter that records how many times that specific user has used that specific code.

    Eventually, due to either a time expiry, or having been used too many times, your code will instead turn around and say ‘Sorry Fred, that link is too old/has been used too many times’…at which point they can re-buy the content, for example, at which point you can generate a new code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using PHP and MySQL, I want to select only 6 rows from table which
I want to delete the most recent entry in MySQL using PHP, is there
i want to retrieve image stored in mysql as path using php and display
I am using php, js, flash and mysql on 1 website. I want to
I'm programming a script using PHP and MySQL and I want to get a
I am trying to make a full complex search using php and mysql.I want
I have been using php/mysql for a while now, I want to sanitize all
Using PHP and MySQL I want to track sign ups using a PARENT and
Hello I have a website. created using php,mysql. I want to set a limit
I am using PHP with MYSQL and want to add a feature to upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.