title: CodeIgniter: Allowed memory exhausted
body: <p>I am working in CodeIgniter. What I am trying to do is reading an Excel file and saving to a database. To read the Excel file, I am using <a href="https://github.com/EllisLab/CodeIgniter/wiki/Excel-Reader-Class" rel="noreferrer">this library</a>. After uploading, while reading the Excel file, I am getting this error:</p>
  
  <blockquote>
    <p>Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /home/webscwi1/public_html/projects/OnlineExam/application/libraries/excel_reader.php on line 430</p>
  </blockquote>
  
  <p>Anyhow, I can change the memory size from 12Mb to 512Mb, I'm still getting the same error. I don't know what is the exact error and I want to know whether this is a server error or a problem in the code.</p>
  
  <p>Additional info: If I upload the file with 15 rows, it's working fine, but if I upload with 90 rows in Excel I am getting this error:</p>
  
  <pre><code> $this-&gt;load-&gt;library('excel_reader');
   $this-&gt;excel_reader-&gt;read('question/'.$filename);
   $worksheet = $this-&gt;excel_reader-&gt;worksheets[0];
  </code></pre>
  
  <p>Thanks to all.</p>