KOMPOOS.NL

unieke ip-adressen vandaag

home » kompoos » tel-unieke-ip.html

sitemap


uitleg unieke ip's

Deze kleine module gebruikt de vergaar-procedure. Om de unieke ip-adressen van vandaag zichtbaar te maken kan je de onderstaande php-code gebruiken.


<pre><?php
        $t=time();
        $f=date("Ymd",$t);
        $s="/home/JOUW!!-pad-naar/tel/".$f.".txt";
        $tel_unieke_ip=0;
        if(file_exists($s)){
                $bruto_aantal_unieke_ip=(file($s));
                $tel_unieke_ip=count($bruto_aantal_unieke_ip);
                $unieke_ip_array=array();
                $unieke_ip_array_totaal=array();
                for($i = 0;$i < $tel_unieke_ip;$i++){
                        array_push($unieke_ip_array_totaal,substr($bruto_aantal_unieke_ip[$i],9,15));}
                $unieke_ip_array=array_unique($unieke_ip_array_totaal);
                sort($unieke_ip_array);
                print_r($unieke_ip_array);}
?></pre>
Array
(
    [0] => 157.55.33.110..
    [1] => 178.154.179.248
    [2] => 204.236.226.210
    [3] => 208.115.111.68.
    [4] => 208.115.113.84.
    [5] => 212.64.1.142...
    [6] => 37.251.18.225..
    [7] => 37.251.56.162..
    [8] => 66.249.76.219..
    [9] => 82.171.69.214..
    [10] => 82.73.21.196...
    [11] => 83.160.50.102..
    [12] => 83.84.92.19....
    [13] => 84.24.11.40....
    [14] => 84.241.215.158.
    [15] => 87.211.229.242.
)
statistieken