Reply to Re: how to hide the url of a file for downl load?

Your name:

Reply:


Posted by Stefan Rybacki on 07/01/05 17:21

Hilarion wrote:
>> > <?php
>> > // download_file.php
>> > $file_locations = array(
>> > 1 => 'my/location/file1.zip',
>> > 2 => 'my/dislocation/file2.doc',
>> > 1123 => 'some/important/file.dbf'
>> > );
>> > > Header( 'Location: http://my.server.com/' . $file_locations[
>> IntVal( > $_GET[ 'id' ] ) ] );
>> > ?>
>
>
>> This won't help much, since the real url is passed to the client and
>> that is what the OP wanted to avoid.
>
>
> She didn't write she wants to hide it before client. She only
> wanted to hide it before the user. Most client apps do not present
> the URL for the downloaded file so the above solution is OK in most
> cases.
>

Well at least if you're using a download manager you'll get the URL.
Never mind, I let it up to her. But it is also possible to provide a
resume function by the download script.

Regards
Stefan

>
> Hilarion

[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

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