Reply to Re: Difference between storing files on folder and in mysql db

Your name:

Reply:


Posted by Rik Wasmus on 01/08/08 16:59

On Tue, 08 Jan 2008 17:56:02 +0100, missmoo <moriel@gmail.com> wrote:

> Hey,
>
> I would like to know what the differences are in terms of security,
> reliability and resources between storing user-uploaded images in a
> file or storing them in a mySQL database.
>
> Our company is starting an image-competition soon, and I am not sure
> if I should write the php script to insert the binary code into a
> mySQL database or if I should just store the files in a dedicated
> folder and the data about them in the mySQL database.
>
> We are expecting relatively big loads of files, at least 10,000 in the=

> first 2 months.
>
> Which system should I use? Is there a real difference between the two?=

> our server is apache2, if that has any effects on the answer..

Security & reliability =3D> data also in MySQL (or at least a database).=

Granted, the load would be somewhat higher, but it the database machine =
is =

the same as the webserver, not very siginificant.

If MySQL is allready stretched then offcourse go for the files solution.=

-- =

Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация