Archive for the ‘Gotcha’ Category

How to get rid of cursor stuck as drag n drop icon on VMware Player (document with hand)

Tuesday, October 18th, 2011

Drag and drop icon ubuntuI use VMware Player to run Ubuntu …

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 …

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 …

Gotcha: PHP-GTK connect_simple sends no children when ‘add’ signal is emitted

Friday, April 30th, 2010

I have been learning PHP-GTK. I was following Chapter 4 of the Pro PHP-GTK book by Scott …

Gotcha - In PHP Using foreach on an object that does NOT implement the iterator interface does NOT throw a notice or error

Monday, April 26th, 2010

In PHP Using foreach on an object that does NOT implement the iterator interface does NOT throw …

Gotcha: Zend_Validate_StringLength interface changes between versions 1.9 and 1.10

Saturday, April 17th, 2010

Just a little note to myself for when i upgrade to Zend Framework 1.10

The interface to the …