no problem :)
Header("Content-Type: {$prod_r["file_type"]} ");
Header("Content-Disposition: filename='{$prod_r["file_name"]}' ");
echo $prod_r["file"];
this code works perfect for me, just modify the variables to meet yours.
--
Chris Lee
""indrek siitan"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm storing files in DB. basically (what's important in this case),
> I have two columns:
>
> file_name - contains the original filename
> file_src - blob which contains the actual file
>
>
> now the user clicks on a link something like download.php?file_id=123
> and the php script will spit out the file. is there any way (some
> header magic) to make the user browser to offer the file to be
> saved as "file_name" ?
>
>
> Rgds,
> Tfr
>
> --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]