Help - Search - Members - Calendar
Full Version: Temporary Download Link
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
whoisJDEN
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
I'm not sure I understand... What do you want?

swordz
shinjiketojapann
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
I thought he might, but wasn't sure.

Just add a time stamp, and check the time stamp, surely?

swordz
whoisJDEN
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
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
Im a newbie to PHP so could you write up a code or link me to a exapmle of it. Thanks

JDEN
swordz
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
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.
Invision Power Board © 2001-2010 Invision Power Services, Inc.