-1

Possible Duplicate:
PHP application running out of Memory
Allowed memory size of X bytes exhausted

Allowed memory size of 33554432 bytes exhausted (tried to allocate 94 bytes) in /home/extremew/public_html/florista/PHPExcel/PHPExcel/Worksheet.php on line 942

Community
  • 1
  • 1
  • Do you know that there is a powerfull search engine on Stackoverflow? You [**should use it**](http://stackoverflow.com/search?q=%5Bphp%5D+Allowed+memory+size) ! – j0k Nov 21 '12 at 11:10
  • Have you tried using any of PHPExcel's memory saving features, such as cell caching? – Mark Baker Nov 21 '12 at 11:14
  • Please check this link and all links inside [LINK](http://stackoverflow.com/questions/5560053/phpexcel-allowed-memory-size-of-134217728-bytes-exhausted) – Sentencio Nov 21 '12 at 11:15
  • "PHPExcel's memory saving features, such as cell" will you please explain this in briff – user1841662 Nov 21 '12 at 11:16
  • Cell Caching is described in section 4.2.1 of the developer documentation... it basically provides aseries of options to reduce the memory needed to hold cell data in memory – Mark Baker Nov 21 '12 at 12:12

2 Answers2

2

PHP is running out of memory, you can fix this by increasing your PHP memory limit in php.ini

Try this:

memory_limit 64M

Then restart apache.

pxg
  • 1,033
  • 1
  • 10
  • 16
0

You have to increase your php memory. There are 3 ways to do it.

Often provider don't give permissions to php.ini or disabled the function in .htacces to increase memory. Than you only have the chance to do it directly in php.


php.ini

Change this line memory_limit = 64M After that you must restart your webserver.

direct php

Use ini_set('memory_limit', '64M'); to set are memory size.

.htaccess

Add php_value memory_limit 64M to your file.


EDIT : Change value in examples.

EDIT 2 : There are a lot of people which have the same question. Please read this!

Community
  • 1
  • 1
Sentencio
  • 230
  • 1
  • 13
  • Thank you sir, but problem still remains......... Allowed memory size of 33554432 bytes exhausted (tried to allocate 105 bytes) in /home/extremew/public_html/florista/PHPExcel/PHPExcel/Worksheet.php on line 942 – user1841662 Nov 21 '12 at 11:05
  • You should change the value of memory. The 16M is only an example. – Sentencio Nov 21 '12 at 11:07
  • I have tried 16M, 32M, 64M 128M but no change in o/p – user1841662 Nov 21 '12 at 11:12