Saving images in database mysql

前端 未结 5 1506
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 13:08

My client have created a script in php+mysql that saves images directly in the database and every images has url like this: www.example.com/image.php?id=421

In your

5条回答
  •  星月不相逢
    2020-11-30 14:04

    If you read @Gazler's link from comment, it really boils down to few questions:

    • is there any problem with performance? [Y]
    • do you store any additional information, or just images itself? [Just images]
    • do you plan (or hope) to attract much more users in future? [Y]
    • are you limited in size of your db? [Y]

    if you answered with answers in brackets, then it might be good for your website to put images out of database, otherwise, you can leave it as it is and save yourself some time and/or nerves

提交回复
热议问题