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]
|