Re: [PHP] Displaying files from database

2007-03-28 Thread Philip Thompson
On Mar 28, 2007, at 1:36 PM, Richard Davey wrote: Philip Thompson wrote: Hi. I'm storing an uploaded file into a MySQL database. I want the file to then be downloaded and viewed. Uploading looks like: Assuming you actually have a good reason *why* you are storing uploaded files in your da

Re: [PHP] Displaying files from database

2007-03-28 Thread Philip Thompson
On Mar 28, 2007, at 12:59 PM, Tijnema ! wrote: On 3/28/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Hi. I'm storing an uploaded file into a MySQL database. I want the file to then be downloaded and viewed. Uploading looks like: if (is_uploaded_file($file) && $filename) { $handle = fopen (

Re: [PHP] Displaying files from database

2007-03-28 Thread Richard Davey
Philip Thompson wrote: Hi. I'm storing an uploaded file into a MySQL database. I want the file to then be downloaded and viewed. Uploading looks like: Assuming you actually have a good reason *why* you are storing uploaded files in your database, how has the table been set-up? What is the tab

Re: [PHP] Displaying files from database

2007-03-28 Thread Tijnema !
On 3/28/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Hi. I'm storing an uploaded file into a MySQL database. I want the file to then be downloaded and viewed. Uploading looks like: if (is_uploaded_file($file) && $filename) { $handle = fopen ($file, 'r'); $resume["data"] = base64_encode (f

[PHP] Displaying files from database

2007-03-28 Thread Philip Thompson
Hi. I'm storing an uploaded file into a MySQL database. I want the file to then be downloaded and viewed. Uploading looks like: if (is_uploaded_file($file) && $filename) { $handle = fopen ($file, 'r'); $resume["data"] = base64_encode (fread ($handle, filesize ($file))); fclose($handle);