You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
276 B
16 lines
276 B
<?php
|
|
|
|
class Log_
|
|
{
|
|
// 打印log
|
|
function log_result($file,$word)
|
|
{
|
|
$fp = fopen($file,"a");
|
|
flock($fp, LOCK_EX) ;
|
|
fwrite($fp,"执行日期:".strftime("%Y-%m-%d-%H:%M:%S",time())."\n".$word."\n\n");
|
|
flock($fp, LOCK_UN);
|
|
fclose($fp);
|
|
}
|
|
}
|
|
|
|
?>
|