There are flash ones
Check that out for a flash version. I used it in the past to do exactly what you are asking. The PHP script won't timeout unless the photos are huge. If you have enough access access on your server you can set the timeout to go a little longer, if need be.
Each photo should be its own individual request to the server so the number of files shouldn't matter.