Allowed memory error while uploading image file in server
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3794197/imagecreatefromjpeg-out-of-memory-problem">imagecreatefromjpeg + Out of memory problem</a>  </p>
</blockquote>



<p>In php to upload a image by re sizing it. while uploading the file file I am getting some error.Blow you can find the error message.</p>

<blockquote>
  <p><strong>Fatal error: Out of memory (allocated 69206016) (tried to allocate 17280 bytes) in /home/mangalti/public_html/om/include/common.class.php
  on line 125</strong></p>
</blockquote>

<p>In the line 125 this the code <code>$source = imagecreatefromjpeg($tempFile);</code> </p>

<p>It is some memory error so i tried <code>ini_set('memory_limit', '256M');</code> but it shows the sample error if I upload a image with size more than 1.7MB. Below the 1.7MB no problem to upload the file.</p>
