t_machine Posted January 27, 2007 Share Posted January 27, 2007 hi, I would like an example script if possible of how to create download links that expires.I would like to link to my download files but i want the user to have access to that link for only 24 hours.Thanks :) Link to comment https://forums.phpfreaks.com/topic/35978-how-to-create-download-links-that-expires/ Share on other sites More sharing options...
pocobueno1388 Posted January 27, 2007 Share Posted January 27, 2007 Maybe you could make a table in your database called "links" with a row some how tying in with the link/download ID with another table. And whenever they should be able to click on the link it will insert the data into that table, then you could make a cron that deletes the rows that have been there for 24 hours. I can't think of anyway else to do it. Link to comment https://forums.phpfreaks.com/topic/35978-how-to-create-download-links-that-expires/#findComment-170638 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.