i've used php to scan a directory structure and display the contents in the past (hypothetically let's say, a list of images in a directory, maybe also a thumbnail directory, etcetera).
currently i'm working on a gallery that could potentially have thousands of images.
since i don't want php doing all that work every time a user loads a page, i'm setting up a cache that retains the last known list of images and their related thumbnails in mysql.
let's pretend the user in charge of maintaining images for the gallery has a copy of photoshop and does their editing on a machine that has the image gallery drive mapped to their machine, and can simply copy / save the images right into that directory.
other than a timed script that checks for new files in that folder overnight, or one that checks for changes when the user loads the page, is there any way to have... i guess some kind of wrapper that automatically detects that a new file has been created, and alerts php?
would php/gtk solve this? or would it need to be C / Java / etc?
thanks in advance for any insight;
-adam