Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2005, 10:33 AM
Authorized User
 
Join Date: Jan 2004
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Ashleek007
Default random file generation

hmmm, this is a tough one for me!

My idea is to have a link to a file which can be downloaded after someone has purchased the file.

I want this link to be available for a day, then it would expire.

so, someone decides they want to download a template from me, they click on buy, pay the amount stated, then recieve a confirmation email with a link that has been created to download the file.

i want to know how to make this link encrypted so the link cant be used after the file has been downloaded (or a set amount of time) and also how to create this link in the first place!

has anyone any ideas?!

thanks
Ash:D

My new web design domain
www.askmultimedia.co.uk
__________________
My new web design domain
www.askmultimedia.co.uk
 
Old February 24th, 2005, 03:20 AM
Authorized User
 
Join Date: May 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ruhin Send a message via AIM to ruhin Send a message via MSN to ruhin Send a message via Yahoo to ruhin
Default

If you have registered users, they must have a database. In the database you can have a field to specify the file name and the status of the file (whether downloaded or not or how much time). Then throught the download link you can point to another file that checks file download from the databse. if the file is already downloaded then the database would have a flag which would prevent downloading again.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Number Generation i_shahid C# 2005 2 March 31st, 2008 10:50 PM
Getting Data from a VB5 Random File lowell Visual Basic 2005 Basics 11 July 5th, 2007 05:39 AM
Generation of alphanumeric random characters sajid_pk ASP.NET 1.0 and 1.1 Professional 1 May 10th, 2005 08:37 AM
Random Generation of Username and Password Prabhakar_dt Classic ASP Basics 2 August 31st, 2004 06:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.