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 6894217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:45:19+00:00 2026-05-27T06:45:19+00:00

I am trying to create a one time download link in php as my

  • 0

I am trying to create a one time download link in php as my client would like to sell bus trip tickets on their website. I am a begginer/ never really wrote my own php and I am trying to create a one time download link for the tickets. The issue is that the vouchers ae created dynamically by php too and a variable is stored in the link, otherwise I could just use the builtin function of my cms. However, I want to create one time link to a page redirecting people to the page with the redirect.

If someone could outline the process of creating one time links that would be greatly apreciated, and if some could provide some example code that would be great.

Thank you,
Thomas

  • 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-27T06:45:20+00:00Added an answer on May 27, 2026 at 6:45 am

    The outline is like:

    • Generate a unique ID – uniqid can be used
    • Insert that into your database
    • Send a link to the user that uses that ID in some way, like /download/{id}
    • When the user goes to the link, register in your database that it has been used

    And then make sure that your download script checks whether the id has been used before.

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

Sidebar

Related Questions

i am trying to create a Radio button using Cakephp like the one the
I am trying to create a situation where one or none of a grouping
I am trying to create a dictionary from 2 lists where one list contains
I'm trying to create a table with Listview and one of the fields I'm
I'm trying to create a WSTransfer implementation (I realise Roman Kiss has written one
I'm trying to create a drop down button and its almost working except one
I'm trying to create a Comments section in my wiki. There's one solution on
I am trying to create a little helper application, one scenario is file duplication
this one is really easy. I'm trying to create a Regular Expression that will
I'm trying to use the DSACryptoServiceProvider class with C# to create two DLLs: one

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.