Re: Pictures+MySQL+PHP
| From: | Michael Waples | Date: | Sat, 26 Jan 2002 08:53:30 +0000 |
| Subject: | Re: Pictures+MySQL+PHP | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16210@lists.php.net to get a copy of this message | ||
Ck Raju wrote:
>
> that I changed my mind. Gurhan Ozen>Storing images in the database is not a
> good idea , just store the path of Gurhan Ozen>the images in the database
> and keep your images in your hard disk... Gurhan Ozen>
>
> Since everything is on hard-disk, I personally feel, the image can be stored
> anywhere. BLOB should be easier when doing a mysqldump, or when replication
> is needed.
>
> Anywhere else go in for storing images separately.
> Raju
I prefer storing images out of the dbserver to save on server load. You
can serve those images with a http server like thttpd, boa etc which
will serve images quicker and with a lighter load.
If you need replication just use rsync to move your images around.
But if server load isn't an issue a database is as good as any place.