RE: [PHP] file from database work local, but not on server

2006-06-08 Thread tedd
At 6:22 PM +0700 6/8/06, Peter Lauri wrote: >Hi Tedd, > >Thank you for your answer. I have it working for images already, the problem >comes to Excel, PDF's etc. I will do some more testing using your sample, >thanks. > >/Peter Peter: Excel and PDF's are different critters. I'm sure there are peo

RE: [PHP] file from database work local, but not on server

2006-06-08 Thread Peter Lauri
Lauri; 'Chris' Cc: php-general@lists.php.net Subject: RE: [PHP] file from database work local, but not on server At 9:03 AM +0700 6/8/06, Peter Lauri wrote: >Is there anyone with reference of a small example of binary storage and >retrieval from database? I have performed working

RE: [PHP] file from database work local, but not on server

2006-06-08 Thread tedd
At 9:03 AM +0700 6/8/06, Peter Lauri wrote: >Is there anyone with reference of a small example of binary storage and >retrieval from database? I have performed working solutions for images >before, but this should support any file extensions (with exceptions of >course). Peter: Storage and retri

RE: [PHP] file from database work local, but not on server

2006-06-08 Thread Jef Sullivan
What happens when you print out the query to the page? Is the query correct? Jef -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 1:10 PM To: php-general@lists.php.net Subject: [PHP] file from database work local, but not on server Best

RE: [PHP] file from database work local, but not on server

2006-06-08 Thread Peter Lauri
regards, Peter Lauri -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 8:00 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] file from database work local, but not on server Peter Lauri wrote: > Best group member, > > This code w

Re: [PHP] file from database work local, but not on server

2006-06-07 Thread Chris
Peter Lauri wrote: Best group member, This code works fine on my local machine: $Query = sprintf("SELECT * FROM filestorage WHERE id=%s LIMIT 1", $_GET['fileid']); $Result = mysql_query($Query); if (mysql_num_rows ($Result)>0) { $Row = @mysql_fetch_array ($Result); $file_type = $Row["filety

[PHP] file from database work local, but not on server

2006-06-07 Thread Peter Lauri
Best group member, This code works fine on my local machine: $Query = sprintf("SELECT * FROM filestorage WHERE id=%s LIMIT 1", $_GET['fileid']); $Result = mysql_query($Query); if (mysql_num_rows ($Result)>0) { $Row = @mysql_fetch_array ($Result); $file_type = $Row["filetype"]; $file = $Row[