RSS Feed

Category Archives: PHP

Debugging methods for PHP

I recently read an article about the most commonly used PHP functions and while reading I was thinking about the most useful functions I tend to use day in, day out when debugging.

Posted in PHP

7 tips to prevent PHP running out of memory

Is the following error familiar to you? Fatal error: Allowed memory size of XXX bytes exhausted It is to me and recently I’ve written an import script that reads the contents of 10 XML files. These files accumulate a total …

Posted in PHP

symfony 1.2+ tasks: The “default” context does not exist

If you happen to run into the error ‘The “default” context does not exist’ when running a custom symfony task the chances are you’re using a method of an object which utilizes sfContext. It seems symfony does not create an …

Posted in PHP