What is a simple "download ticket" manager program for a webserver?
September 11, 2007 1:32 PM Subscribe
Is there a download manager (php preferably) that can generate "download tickets" for a file?
Ideally, I'd like this to happen: the php create a list of "tickets" - a generated set of characters - to distribute, and then be set a number of times a file can be downloaded with each "ticket."
Does such a piece of code exist? I have scoured the ends of the php script wastelands and found none.
posted by beelerspace to computers & internet (4 answers total)
SELECT ticket, downloads FROM tickets WHERE ticket = "requested ticket"
deny if you want (ie, too many downloads)
and then after you send the data file down to the client:
UPDATE tickets SET downloads = downloads + 1 WHERE ticket = "requested ticket"
I don't know enough PHP to tell you how to do that, but using mysql it would be trivial to implement that database.
posted by cschneid at 2:38 PM on September 11, 2007