PHP Fatal error….. and PHP Links

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.

How to Manage Memory in PHP

A HOWTO on Optimizing PHP

Solve PHP Fatal error

Testing

Restored….

My database got deleted somehow… Who knows.

Well, I am back!