You are here: Re: how to hide the url of a file for downl load? « PHP Language « IT news, forums, messages
Re: how to hide the url of a file for downl load?

Posted by Hilarion on 07/01/05 13:58

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


Hilarion

 

Navigation:

[Reply to this 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

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