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.
Thank you, I generally takes smaller breaks, I drink lots of coffee too. I am also taking proper sleep. But the thing is that I am not able to concentrate. If I see some motivational videos, it helps me to stay motivated but when I try to write codes I start yawning and my mind shift to some other works.