|
Posted by Oli Filth on 11/03/42 11:18
Adnan said the following on 12/06/2005 12:26:
> Hi td,
>
> try something like this.
>
> <?
> /*
> * Change 'CONTENT=6' to however many seconds
> * you want the user to wait to be linked to
> * the file
> *
> * Put this line in between the <head> tags
> */
> echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"6;
> URL=http://link/to/remote_file.zip\">";
>
> /*
> * put this in the main body after you registered
> * the download in the db
> */
> echo "Please wait while download starts...";
> ?>
>
No! Don't do this!
You have no control over the download (because the user now has a direct
URL to the file), it adds an unnecessary 6 (or whatever) second delay,
and it uses "refresh", which isn't a valid HTTP header (although it does
work on many browsers).
--
Oli
Navigation:
[Reply to this message]
|