FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


whats the best?





kawkazEE
im planning to create a gallery but im wondering whst would be the best wether to store the image in mysql or just in a folder?
MrBlueSky
Quote:

One of the ongoing debates about images and databases is whether to store images in the database or whether to store them in the file system and store only the pathname in the database. [...]
If you want more information about the pros and cons of each approach, search the MySQL mailing list archives.

MySQL and Perl for the Web, Paul DuBois, Page 161

It depends. Whatever suits your needs. If your dbase is slow, use files. If you don't have much free disk space but your dbase may grow unlimited, store them in the database. Both have pros and cons.
ritesh26
Hi, i have 2+ years of experience in web & software development.
and i will suggest to you for store images in disk on in database. Disk
will be easy for manipulation of images.
X3 Talk
I don't have a lot of experience on the topic.
I would say files but it depends on what you want. Use PHP to do an if file exists before showing off your pics.
manum
any would do but db wil b faster i guess
MrBlueSky
manum wrote:
any would do but db wil b faster i guess


I think, if there is a difference, file's would be faster. A dbase query always has some overhead and file-access is fast.
Related topics
Your favourite group/singer? *OFFICIAL*
Halo 2 - Best online game?
Google delares war on Microsoft!!!
WHATS BEST SOCCER GAME - PRO EVO 5 OR FIFA'06?????????
Dreamweaver or Golive?
Primus
Whats best Online Multi Game??
[Help] Suggest a DVD ripper
Should I kill this person?
New to this.
Bluetooth Problem
php Frameworks, or PHP CMS ?!
whats best
whats best for a website thats mostly a forum?
Best of the free IDE's & why
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.