Visitors: $timeout) { $all .= $pieces[0]; $all .= ","; } $i++; } $all = substr($all,0,strlen($all)-1); $arraypieces = explode(",",$all); $useronline = count(array_flip(array_flip($arraypieces))); if ($useronline == 0) { $useronline = 1; } // Writes how many users online: echo ("Users online: $useronline"); $dell = ""; for ($numm = 0; $numm < count($datei); $numm++) { $tiles = explode("|",$datei[$numm]); if ($tiles[1] > $timeout) { $dell .= "$tiles[0]|$tiles[1]"; } } if (!$datei) $datei = dirname(__FILE__)."/$filename"; $time = @time(); $ip = $REMOTE_ADDR; $string = "$dell"; $a = fopen("$filename", "w+"); fputs($a, $string); fclose($a); ?>