title: Allowed memory size of 67108864 bytes exhausted ERROR when uploading a photo
body: <p>I have a little problem with my website.</p>
  
  <p>People use this page to create a post on my site, you can attach photos to it.
  All photos were working ecept that one. ( see below for the link )</p>
  
  <p>When I try to upload it on the "post" page it says:</p>
  
  <p>My girlfriend is the one that is trying to upload it , before uploading it she rotate the picture with windows 7 ( in preview mode ) so the image would be on the right side.</p>
  
  <p>PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 3411201 bytes) in /home/(rest of path)/upload.php on line 65</p>
  
  <p>line 65 on upload.php = $tmp=imagecreatetruecolor($newwidth,$newheight);</p>
  
  <p>I've been looking for a way to "counter" that error for 2 days.</p>
  
  <p>Can anybody help me please?</p>
  
  <p>It only show that error with that image, I don't know if the rotate is the problem...</p>
  
  <p>Thank you very much</p>