PHP sample code which upload image and make a thumbnail for the image automatically