Here is the script I use for uploading to my family's photo page. It doesn't create a random name but it does create the thumbnail, stores the images in the appropriate folders and adds the information (including comments/captions for the images) in a database.
<html>
<head>
<title>Our Family...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.