Is My PHP Script Running Out Of Memory?

I’ve got a PHP script that sometimes just dies with no errors to the browser and no messages in the error log. I’ve seen this in the past with scripts that consumed too much memory (yeah, it should have issued an error, but it didn’t, and increasing the memory limit fixed it), but now the memory limit is set pretty high and I’m not sure I want to increase it further. I certainly don’t want to increase it without seeing where it’s going wrong, anyway.

To do that, IBM developerWorks says the memory_get_usage() and memory_get_peak_usage() functions are for me. And they offer some other interesting tips as well.

Memory, Intimacy, And The Web

I’ve been thinking about it since Troy mentioned to me that he thought Google was ruining his memory. And I thought I found confirmation of it when I read Gladwell’s description of Daniel Wegner, et al’s Transactive Memory in Close Relationships: When we talk about memory, we aren’t just talking about ideas and impressions and […] » about 400 words

Steelers Fan Never Misses a Game Day

In remembering James Henry Smith, a zealous Pittsburgh Steelers fan who died of prostate cancer in early July, his family asked the Samuel E. Coston Funeral Home to do things “as he would have wanted them to be.” For the viewing, the funeral home arranged a living room ensemble with the TV and recliner just […] » about 200 words