I have a issiue when uploading a image taken using iphone. I am trying to use PHP and the imgrotate function to automaticly decide if the image needs to be rotated to the co
You are using imagerotate wrong. It expect first parameter to be resource while you are passing the filename. Check manual
imagerotate
Try this:
Do not forget to free the memory by adding following two lines:
imagedestroy($imageResource); imagedestroy($image);