1. Create php script to upload image and then save it to your webserver.
2. Save the names of the photo in the database with a single random string to identify the photos.
3. Read this random string to identify and display the images (or create a download link for the images)
4. Share this URL with your friends.
Its just my opinion, I am looking for what other have to say.