Reply to Re: starting a download within php

Your name:

Reply:


Posted by Oli Filth on 10/16/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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация