Creating temporary links- How to?

Discussion in 'HTML & Website Design' started by nervo, May 11, 2007.

  1. #1
    Can anyone recommend a script that would enable creating temporary links; the ones that expire after a set period of time..?

    I need that in order to redirect buyers of my e-book to the temporary destination where they can download the ebook.

    Thanks all!
     
    nervo, May 11, 2007 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    With PHP:

    if (time() < strtotime("May 31, 2007")) {
    echo '<a href="http://mysite.com/temp.html">Buy book here until May 31st</a>';
    }
    else {
    echo '<a href="http://mysite.com/buy.html">Buy book here after May 31st</a>';
    }
    PHP:
     
    T0PS3O, May 11, 2007 IP
  3. nervo

    nervo Active Member

    Messages:
    1,012
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    90
    #3
    T0PS3O thanks, but that's not what I'm looking for....

    What I need is to send buyers to temporary location on the server where they can download file. That link would then expire in certain period of time.
    I want to avoid sending them to my permanent dir location...
     
    nervo, May 11, 2007 IP
  4. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you were able to use Shell scripts for this you could be done this in a snap...
     
    rgchris, May 11, 2007 IP