By bonlebon
via anyexample.com
Published: Nov 11 2006 / 21:25
This is a simple example of photo-gallery script, which uses MySQL table (BLOB field) to store images. Trivial password-protection, uploading and deleting images are supported. For Apache-version of PHP there is advanced browser-caching support (using If-Modified-Since header).



Comments
bloid replied ago:
I've never been a fan of saving images in blob fields...
dugnamtar replied ago:
Sometimes it's more convenient. No mess with file permissions, easer to back up or move database.
Lowell Heddings replied ago:
It's usually a bad idea. The only reason why people store them there is when you have multiple web servers, it's a lot simpler to keep all the images in sync.
Even if you do store the images there, they should still be cached on the hard drive of the web server so they can be streamed out using apache... rather than loading down PHP with having to stream out the images.
Voters For This Link (8)
Voters Against This Link (0)