Archive for the ‘PHP’ Category

PHP - ‘allowed memory size’ fatal error whilst using exec() command

Friday, October 7th, 2011

I was using php 5.3’s exec() command within a cli script to load some data …

Gotcha - Php require_once includes files twice if path’s case is wrong causing ‘Fatal error: Cannot redeclare’ errors

Monday, September 12th, 2011

Here’s another gotcha story. Its a little storm in a teacup that occurred while I was writing …

Gotcha - Fatal error: Call to undefined method stdClass::myMethod() in /myscript.php on line

Monday, August 8th, 2011

I had a bit of confusion trying to debug a relatively complex set of classes that …

Dreamweaver MX - Regular Expression Search for Undefined Array Index PHP

Monday, July 4th, 2011

If you set your PHP error_reporting to show E_Notices you might sometimes see an error message on …

PHP deprecated error_reporting - All errors apart from deprecated

Monday, July 4th, 2011

When debugging, I can never be sure of the correct arguments to pass to into php’s (more…)

Zend Controller Plugin Order - Ensuring one Zend Framework Plugin Method is Invoked Before Another

Sunday, November 7th, 2010

Lets say you have two Zend Framework Plugins in a ZF MVC application.

How do you …

PHP Inheritance of a class property’s visibility

Friday, September 3rd, 2010

In Object-Oriented PHP5 a class’s properties can have their ‘visibility‘ set.

If a property is undeclared …

PHP Static Methods Can Be Declared Without Static Keyword But Called Statically

Friday, September 3rd, 2010

Whenever I create a PHP class method that I intend to use statically, I declare it as …

Html Tidy fix for anchor tag - already defined in entity, line…

Wednesday, September 1st, 2010

I was having some problems with an XHTML document (that contained a named anchor tag). It was …

Zend Config XML and INI files - How to Specify False and Other Non-String PHP Data Types

Friday, August 27th, 2010

Zend Config INI and Zend Config XML are handy adaptors that allow you …