I now face this error in PHP script. Everything is ok and good as required but still my php script is showing the above error.
I am gone made and can't solve it.

It is that I try to upload image but it shows the error:

Code:
imagecreatefromjpeg() : gd-jpeg, libjpeg: recoverable error: Premature end of JPEG