Check out our blog!
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Role Playing
Switch to Civil Discussion Role-Playing

Viewing a Post

STGill

Avatar: Code (Blue)

[Dev-Null]

Level 14 Hacker

DELETED ACCOUNT

My friend and I were having an interesting discussion, why use MySQL to store images?

I have been working on a set of PHP scripts for a project, part of this project requires that the images be sotred in MySQL rather than written to the drive.

Some scripts, create a new directory and write the file to the disk, while others like mine, store it as a BLOB in MySQL.

I think it makes migration easier, and it makes it easier to control who can and cannot view a set of images. In some cases, like remote hosting you may not have wrote permissions to the drive or scripts may not be able to create new directories.

Can anyone else think of any advantages to storing images in a database rather than as a hard file?

Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!