whoisJDEN
Jan 11 2009, 11:19 AM
Hello
Is there a way to make a Temporary Download link with PHP. I have google it but nothin really came up.
Thanks,
JDEN
swordz
Jan 11 2009, 07:09 PM
I'm not sure I understand... What do you want?
swordz
shinjiketojapann
Jan 11 2009, 07:12 PM
swordz i think he means,
like when you upload a file to like lets say 10minute host, as the name says its only for 10 minutes
swordz
Jan 11 2009, 07:14 PM
I thought he might, but wasn't sure.
Just add a time stamp, and check the time stamp, surely?
swordz
whoisJDEN
Jan 13 2009, 09:05 AM
I want to make a Temporary download link to a file, that the user can only download the file with 3 shots and when the first download starts the link will expire after 24 hours.
Just to clear things up..
JDEN
swordz
Jan 13 2009, 09:40 AM
Create a table that stores the time of the first download and the file name, then check it if people try the link.
swordz
whoisJDEN
Jan 13 2009, 12:22 PM
Im a newbie to PHP so could you write up a code or link me to a exapmle of it. Thanks
JDEN
swordz
Jan 13 2009, 12:29 PM
I doubt there's a pre-made script out there for this, but it's not that tricky. PM me with details, and I'll discuss it.
swordz
NDBoost
Jan 16 2009, 05:20 PM
do as someone previously stated..
except create a cron job to run a php clear script to dump xhour + links out of the db.. No need to hold the information in the db if its not valid anymore.. eh?
Either that or use a status change.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.