PHP Fatal error….. and PHP Links
Posted on July 19th, 2008 by admin
I had to solve a problem a PHP script tonight that was giving a “PHP Fatal error: Allowed memory size of 33554432 bytes exhausted …” message. Debugging PHP is pretty tough (any tips). Anyhow, I found a site that mentioned using the ini_set(“memory_limit”,”12M”); command. This didn’t work, but I did as suggested and bumped the memory up to 50M and it finally worked. We are trying to parse a large soap file, so I wonder if this is a good practice, or could we have some “poor” coding problems? As far as I can tell the code looks good.
Here are a few links that I found on optimizing your PHP code. There are several, but here are some I wanted to read.
Discussion Area - Leave a Comment
You must be logged in to post a comment.