in reply to Ideas for implementing download links that expire, via e-mails

Well, if it were me, I'd K.I.S.S. as much as possible.

The first thing that I thought of was kicking off find -mtime 1 --exec rm {} \;. This releives you from any DB work or tracking. It all happens at the filesystem metadata level.

(Of course, you'll probably need a *nix system to get this to work right.

  • Comment on Re: Ideas for implementing download links that expire, via e-mails
  • Download Code

Replies are listed 'Best First'.
Re^2: Ideas for implementing download links that expire, via e-mails
by ghenry (Vicar) on Apr 23, 2005 at 20:31 UTC

    I like that idea.

    But what if the download on offer has to be kept?

    I suppose you could make a copy and then delete that one after 24 hours.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!