Re: [PHP] filenames on file download

2001-02-22 Thread Chris Lee
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]> wrot

[PHP] filenames on file download

2001-02-22 Thread indrek siitan
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