[PHP-DB] Re: [PHP] Adding a log file

2003-11-07 Thread John W. Holmes
Erik Osterman wrote: Consider using this // // STDERR logging function // function warn( $msg, $die = 0 ) { $fp = fopen(php://stderr, 'w') or die(Failed to open STDERR); fwrite($fp, [.strftime(%Y-%m-%d %T).] $msg\n) or die(Failed to write to stderr); fclose($fp);

[PHP-DB] RE: [PHP] Adding a log file

2003-11-07 Thread Erik Osterman
Consider using this // // STDERR logging function // function warn( $msg, $die = 0 ) { $fp = fopen(php://stderr, 'w') or die(Failed to open STDERR); fwrite($fp, [.strftime(%Y-%m-%d %T).] $msg\n) or die(Failed to write to stderr); fclose($fp);