(I've spent hours looking, and I'm sure it's obvious, but I don't see it...)
I've been playing with the open source image gallery LinPHA. It allows you to ftp images to a subdir called albums, and somehow it populates a table called linpha_photos from the files in this directory. I simply can't find the code that (I assume) scans that directory and calls some function to do the insert (it also creates an md5 hash and a thumbnail in the same process).
Anyone know LinPHA or have a minute to look? http://sourceforge.net/projects/linpha/files/linpha/linpha-1.3.4/