php - What would be the preferred method of creating an online photo album? -


i have @ disposal php, mysql , linux server.

the site i'm creating client should have back-end manageable photo gallery.

i planning create in mysql, meaning have table containing mediumblob contain binary data of picture. allow me have @ 1 spot, not having rely on chance client wouldn't accidentally remove image gallery directory without updating database , forth.

the alternative, of course, have images independent of mysql database, , save image paths.

what i'm posting question here ask experts if there potholes in method i'm not seeing. have never tried method of creating gallery before. instance, considered bad practice retrieving large amounts of data mysql when file-system storage possible?

what thoughts?

(i mark correct reply erases doubt case mind)

personally, wouldn't recommend reinvent wheel... if want clients/users updating data. far better existing solution. there tons of them out there. robust gallery

as actual question, there lots of reasons not store binary files in db. (and few know so.) size definite consideration. many hosting providers have smaller size limit database filesystem limit. tying them providers allow enormous database filesizes. additionally, apache @ serving static files client. php passing binary files through going way slower. site's speed suffer.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -