elog function Extension for PHP