dir)){ $logfile = $this->dir . "mb_error_" . date("Y_m_d") . ".log"; if(!$h = @fopen($logfile,"a")){ } else{ $content = date("Y.m.d") . "," . date("H:i:s") . "," . $n .chr(13).chr(10); if(!fwrite($h,$content)){ #exit; } fclose($h); } } } } ?>