php代码
公文是政府与企事业单位处理公务和行政管理工作的重要工具,在各级行政单位中,`办公`的一个重要内容就是办理和制发文件,即`办文`,办文是每个行政管理单位大量日常的工作。借助新的网络信息技术对公文进行高效有序的电子化处理,是办公自动化建设的重要组成部分,也是关系到电子化办公系统建设全局的基础性工程。
0
function write($message,$level='ERROR',$type=3,$destination='',$extra='') {
$LOG_PATH = './';
$LOG_FILE_SIZE = 100;
$now = date('[ c ]');
$type = $type?$type:3;
if($type == 3) { // 文件方式记录日志
if(empty($destination))
$destination = $LOG_PATH.date('y-m-d').'.log';
//检测日志文件大小,超过配置大小则备份日志文件重新生成
if(is_file($destination) && floor($LOG_FILE_SIZE) <= filesize($destination) )
rename($destination,dirname($destination).'/'.basename($destination).'-'.time().'.log');
}
error_log("{$now} {$level}: {$message}\r\n", $type,$destination,$extra );
//clearstatcache();
}
write('dd');
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号