Simple daemon framework in PHP