I use PHPexcel to open a .xlsx file (on ovh mutualized server) and encountered problems that I solved.
I have a new problem when saving the the modified file :
"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"
I read many questions and answers on internet and tried some solutions like :
- memory_limit in .htaccess => problem on the server, it does'nt work
- 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.
- I can't modify php.ini
I tried to write setPreCalculateFormulas(false) during saving the file but always the same problem.
Please someone could help me to find a working solution ?
Thank you