RE: [PHP-DB] Re: Subject: mysql - image storing

2005-01-19 Thread mel list_php
(very basic form just to ensure I can make it work as well), or if somebody can tell me what I'm doing wrong here... Thanks to everybody!! From: Neil Smith [MVP, Digital media] [EMAIL PROTECTED] To: php-db@lists.php.net CC: [EMAIL PROTECTED] Subject: [PHP-DB] Re: Subject: mysql - image storing

RE: [PHP-DB] Re: Subject: mysql - image storing

2005-01-19 Thread Neil Smith [MVP, Digital media]
At 09:48 19/01/2005 +, mel list_php wrote: Ok Neil, I'll try this as well.I thought a readfile would be also forbidden by the htaccess, No, .htaccess affects public viewing of the web root and child folders. PHP operates on the web server's file system (in as far as your host/ISP permits

[PHP-DB] Re: Subject: mysql - image storing

2005-01-18 Thread Neil Smith [MVP, Digital media]
No, really really , don't do this. Store the path to the image. You then load the path into PHP and use header(Content-type: image/jpeg); readfile($path_from_database); exit; Then .htaccess the *actual directory* you store the images in so it's hidden from browsing. Only allow authorised people

RE: [PHP-DB] Re: Subject: mysql - image storing

2005-01-18 Thread Bastien Koert
there are certain advantages to one over the other (and each method had them)...you do what the requirements tell you to do Bastien From: Neil Smith [MVP, Digital media] [EMAIL PROTECTED] To: php-db@lists.php.net CC: [EMAIL PROTECTED] Subject: [PHP-DB] Re: Subject: mysql - image storing Date: Wed