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!
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 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...