We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,633 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to fix the Fatal error: Allowed memory size of 33554432 bytes exhausted in php?

Hi,
Any body please help me out, am facing the following error


Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1704 bytes) in C:\xampp\htdocs\phpexcel\Classes\PHPExcel\Style\Borders.php on line 517

4
Contributors
4
Replies
1 Year
Discussion Span
8 Months Ago
Last Updated
5
Views
Question
Answered
jacksantho
Junior Poster
169 posts since Feb 2011
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0

This means that your script is using more memory than the allowed. If you post the script maybe somebody will be able to help you.

cereal
Veteran Poster
1,144 posts since Aug 2007
Reputation Points: 344
Solved Threads: 221
Skill Endorsements: 22

Possible cause might be an endless loop. Check your for and while loops wheter they end as intended.

broj1
Nearly a Posting Virtuoso
1,211 posts since Jan 2011
Reputation Points: 167
Solved Threads: 164
Skill Endorsements: 13

Hi,
i increased the memory size in php.ini file...its solved thanks

jacksantho
Junior Poster
169 posts since Feb 2011
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by cereal and broj1

When you don't have permission to modify php.ini, create a php.ini file like this:

-------------------------------

safe_mode = Off
display_errors = Off
disable_functions = 
memory_limit = 128M

upload_max_filesize = 20M
post_max_size = 20M

-------------------------------

then upload to directory in which some files show error like that(eg. admin folder) or simply to all folder ;)

riverspart
Newbie Poster
1 post since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0661 seconds using 2.68MB