Archive for the ‘PHP’ Category

Book Annotation - Pro PHP-GTK - pg 67 - Can a Gtk::WINDOW_POPUP be a top-level window?

Sunday, May 2nd, 2010

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

Errata - Pro PHP-GTK page 58 - GtkEventBox does NOT block its children’s events

Saturday, May 1st, 2010

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

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 …

Installing PHP-Gtk and PHP 5.2 and Pear on Windows in April 2010

Thursday, April 15th, 2010

After battling for some hours I have managed to install php-gtk with PHP  on my Windows XP …

Setting the referrer in SimpleTest web tests - faking the HTTP_REFERER

Thursday, April 8th, 2010

Sometimes you might want to make a PHP web page do different things depending on the value …

A PHP secret to understanding Data Mapper Pattern in Fowler’s Patterns of Enterprise Application Architecture (PoEAA)

Tuesday, February 9th, 2010

Here’s a snippet of a Java code example in Fowler’s esteemed  book, Patterns of Enterprise Application Architecture …

How to Unit-Test for Expected Exception Thrown in Simpletest - *The* Answer

Saturday, January 16th, 2010

I keep forgetting how to assert that an Exception is going to be thrown in Simpletest version …

Creating a PHP Subclassed Singleton to Apply Fowler’s “Introduce Null Object” Refactoring

Saturday, January 16th, 2010

I found a need to implement the “Introduce Null Object“ refactoring procedure that is …

PHP - Getting __sleep to return all properties of an object

Monday, January 11th, 2010

If you write a custom __sleep() magic method for a PHP class, you are expected …