Merhabalar
sürekli güncellenen log dosyasindan veri cekmek istiyorum bu islemi nasil yapabilirim?
Log dosyasi bu sekilde
"192.168.1.1" "demouser" "GET / HTTP/1.1" "100" "Google Chrome" "2000"
Buyrun bir örnek hazirladim ;
$log='"192.168.1.1" "demouser" "GET / HTTP/1.1" "100" "Google Chrome" "2000"';
preg_match_all('@"(.*?)" "(.*?)" "(.*?)" "(.*?)" "(.*?)" "(.*?)"@si',$log, $match_content);
$ip=$match_content[1][0];
$user=$match_content[2][0];
$method=$match_content[3][0];
$port=$match_content[4][0];
$browser=$match_content[5][0];
$outport=$match_content[6][0];
echo $outport;