I built a photobooth, and PHP does the scripting. So the PHP script
(running in Windows) tells a program called PSRemote to take 4
pictures, then PHP passes the pictures to a Photoshop droplet to
arrange them in a strip, then prints them, then the PHP script uploads
the pics.
The problem is, if someone clicked the button to take more pics while
the script was running, it would crash. So a kludgey solution was to
check if the processes php.exe was running, and if so abort. In essence
I'm preventing multiple instances of the script.
Here's the photobooth, if you're interested:
http://wrybread.com/photobooth