Sample code for the book "Signaling PHP"