title: PHPExcel Fatal error: Allowed memory size
body: <p>I use PHPexcel to open a .xlsx file (on ovh mutualized server) and encountered problems that I solved. </p>
  
  <p>I have a new problem when saving the the modified file :</p>
  
  <p>"Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 49 bytes) in /home/observatvu/www/libraries/phpexcel/library/PHPExcel/Cell.php on line 870"</p>
  
  <p>I read many questions and answers on internet and tried some solutions like :</p>
  
  <ul>
  <li>memory_limit in .htaccess => problem on the server, it does'nt work</li>
  <li>ini_set('memory_limit','512M') => I have the message above... with other ini_set values I have other sizes of memory error but no saving of the file.</li>
  <li>I can't modify php.ini</li>
  </ul>
  
  <p>I tried to write setPreCalculateFormulas(false) during saving the file but always the same problem.</p>
  
  <p>Please someone could help me to find a working solution ?</p>
  
  <p>Thank you</p>