This is an implementation of a generic change listener in php.  Also useful for debugging.