Well as far as I can see you have 2 options.

a) Store them directly on disc
b) Store them in a database (eg. mySQL)

I would think that a) is the best way without doubt, since it doest
use any extra processing power to serve the images to your visitors
as its only the webserver doing the usuall stuff.

The b) option has a better advantage regarding the backup function,
as its easier backuping a database than backing up a directory with
scripts anyway. (Unless you are thinking FTP, but right now im
thinking automatied scripts) On the otehr hand I have succesfully
installed ZIP ability with PHP, which makes backing up directories
no problem. So all in all it depends on where you stand if you know
what I mean.

The database sollution puts extra demand on the database as it
constantly has to query the database to get the images all the time.

So if you are thinking about the health of your server, and how quick
you want your site to accessible for your visitors I would stick to a)
I dont think it good practise to store images into the database either.

-- 
Kim Steinhaug
---------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---------------------------------------------------------------


"Paul Marinas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi, i was wondering which is the best way to store images. I'm using an
> upload section for my site and i'm using a script  to put those  images
> from the upload section on a diferent section of the site.
>
> 10x
> Paul
> GnuPG Key http://sgi.rdscv.ro/~paulm/paulm.PGP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to