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