Link Details

Link 6654 thumbnail
User 194680 avatar

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).
  • 8
  • 0
  • 2074
  • 474

Comments

Add your comment
User 111696 avatar

bloid replied ago:

0 votes Vote down Vote up Reply

I've never been a fan of saving images in blob fields...

User 209264 avatar

dugnamtar replied ago:

0 votes Vote down Vote up Reply

Sometimes it's more convenient. No mess with file permissions, easer to back up or move database.

User 205047 avatar

Lowell Heddings replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)