Regarding your suggestion to increase the server memory and the execution time, it didn't solve the problem. I pasted the code on the upload page it didn't work. I edited the php.ini file and increased the server limit to 256M and the execution time to 120 yet it didn't upload.
Like I said earlier I have 3 file fields. It uploads and resizes all three fields when I have smaller image sizes but when I try 3 images of 5.97Mb (3168 x 4224) nothing happens.