Subversion Repositories php-qbpwcf

Rev

Rev 97 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 97 Rev 224
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 
4
 
5
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
5
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2015~2024 Min-Jhin,Chen
6
    Copyright (C) 2014~2025 MIN ZHI, CHEN
7
 
7
 
8
    This file is part of QBPWCF.
8
    This file is part of QBPWCF.
9
 
9
 
10
    QBPWCF is free software: you can redistribute it and/or modify
10
    QBPWCF is free software: you can redistribute it and/or modify
11
    it under the terms of the GNU General Public License as published by
11
    it under the terms of the GNU General Public License as published by
Line 130... Line 130...
130
	#無.
130
	#無.
131
	#備註:
131
	#備註:
132
	#無.
132
	#無.
133
	$getContentBetweenKeyWord=stringProcess::getContentBetweenKeyWord($conf);
133
	$getContentBetweenKeyWord=stringProcess::getContentBetweenKeyWord($conf);
134
	unset($conf);
134
	unset($conf);
135
	
135
 
136
	#如果執行失敗
136
	#如果執行失敗
137
	if($getContentBetweenKeyWord["status"]==="false")
137
	if($getContentBetweenKeyWord["status"]==="false")
138
	{
138
	{
139
 
139
 
140
		#印出錯誤
140
		#印出錯誤
Line 142... Line 142...
142
 
142
 
143
		#錯誤離開
143
		#錯誤離開
144
		exit(1);
144
		exit(1);
145
 
145
 
146
	}#if end
146
	}#if end
147
	
147
 
148
	#var_dump($getContentBetweenKeyWord);exit;
148
	#var_dump($getContentBetweenKeyWord);exit;
149
	
149
 
150
	#如果無符合的內容
150
	#如果無符合的內容
151
	if($getContentBetweenKeyWord["found"]==="false")
151
	if($getContentBetweenKeyWord["found"]==="false")
152
	{
152
	{
153
	
153
 
154
		#下一行
154
		#下一行
155
		continue;
155
		continue;
156
	
156
 
157
	}#if end
157
	}#if end
158
	
158
 
159
	#取得日期與時間
159
	#取得日期與時間
160
	$dateTime=$getContentBetweenKeyWord["content"];
160
	$dateTime=$getContentBetweenKeyWord["content"];
161
 
161
 
162
	#var_dump($getContentBetweenKeyWord);
162
	#var_dump($getContentBetweenKeyWord);
163
 
163
 
Line 174... Line 174...
174
	$count=count($lines);
174
	$count=count($lines);
175
 
175
 
176
	#如果沒有同時間的資料
176
	#如果沒有同時間的資料
177
	if($count<2)
177
	if($count<2)
178
	{
178
	{
179
		
179
 
180
		#下一輪
180
		#下一輪
181
		continue;
181
		continue;
182
	
182
 
183
	}#if end
183
	}#if end
184
 
184
 
185
	#印出時間
185
	#印出時間
186
	echo "Date Time:".$dateTime." ".$count." requests in same time".PHP_EOL;
186
	echo "Date Time:".$dateTime." ".$count." requests in same time".PHP_EOL;
187
		
187
 
188
	#針對每行內容
188
	#針對每行內容
189
	foreach($lines as $line)
189
	foreach($lines as $line)
190
	{
190
	{
191
		
191
 
192
		#印出記錄
192
		#印出記錄
193
		echo $line.PHP_EOL;
193
		echo $line.PHP_EOL;
194
	
194
 
195
	}#foreach end
195
	}#foreach end
196
	
196
 
197
	#結束這個時間的記錄
197
	#結束這個時間的記錄
198
	echo PHP_EOL;
198
	echo PHP_EOL;
199
 
199
 
200
}#foreach end
200
}#foreach end
201
 
201
 
202
?>
-
 
203
202
?>
-
 
203