first commit
This commit is contained in:
12
lib/etc.lib.php
Normal file
12
lib/etc.lib.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?
|
||||
// 로그를 파일에 쓴다
|
||||
function write_log($file, $log) {
|
||||
$fp = fopen($file, "a+");
|
||||
ob_start();
|
||||
print_r($log);
|
||||
$msg = ob_get_contents();
|
||||
ob_end_clean();
|
||||
fwrite($fp, $msg);
|
||||
fclose($fp);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user