文章详情
时间:2009-07-17 来源:yukunming
$f = fopen($tmpLog, 'w'); foreach(glob("$logDir/*") as $pubDir)//遍历目录 { echo basename($pubDir) ."\n";; foreach(glob("$pubDir/*") as $fileName) { echo basename($fileName); $stdin = fopen($fileName, 'r'); while($line = fgets($stdin)) // 对每行日志进行处理 { if($line){ fwrite($f, "$line`" . basename($pubDir) . "`" . basename($fileName) . "\n"); } } } } fclose($f);
辰域智控app
网医联盟app
汇丰汇选App
1970-01-01