Re: download script



<?
$current_time = time();
$q = select name, url, expire from download_link where expire >
".$current_time;
$r = mysql_query($q,$db);
while($row = mysql_fetch_array($r)) {
echo "<tr>";
echo "<td><a href=\'".$row['url']."\">".$row['name']."</td>";
echo "</tr>";
}
?>

Link will expire when the expire date is less than current timestamp.

"konjfuchie" <konjfuchieREMOVE@xxxxxxxxx> wrote in message
news:dc4hpg$i0i$1@xxxxxxxxxxxxxxxxx
> need a script which would e-mail download link to client but the link
> should
> expire in particular amount of time...try to find something but no
> success...anybody knows
>
> z
>


.



Relevant Pages

  • Re: caching of CSS
    ... Expire immediately will set the: ... HTTP header. ... reaches both the proxy, and the end client, which you may, or may not, want. ...
    (microsoft.public.inetserver.iis)
  • RE: Page has Expired
    ... the client browser to view a requested page, ... Generally the "Page has Expired" error is caused by the page's client side ... make it expire, however your problem seems that you don't want it expire ... the requesting client will not cache ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Theoretical programming question
    ... to "expire" a video file. ... They want to create a video file, ... are cracking tools to circumvent the DRM and that we have no control over ... the end client OS and viewer software. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: HTTP Compression issues with IIS 5
    ... "Won't this expire all content on the client immediately including ... clients when using HTTP compression. ... I previously suggest you select 'expire immediately' to see if this ... Specify Additional Document Types for HTTP Compression ...
    (microsoft.public.inetserver.iis)
  • Re: user must chage password in ldap
    ... Wolfgang Mair wrote: ... works: it doesn't;-) Reason: There is no LDAP-standard by which the ... Because of this no client I've come accross warns you your password will ... expire, and no client allow you to change your password if it is already ...
    (comp.sys.sun.admin)