Google+ //echo 'Google+'; $ref = ($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'url'; $data = file_get_contents("log.txt"); $data = explode(" ", $data); $gegevens = array(); foreach($data as $bla){ list($foo, $bar) = explode(" ", $bla); $gegevens[$foo] = $bar; } $gegevens[$ref]++; $bla = ''; $t = 0; foreach($gegevens as $url => $count){ if($url){ $bla.= ($t) ? ' ' : ''; $bla.= $url.' '.$count; $t++; } } $fp = fopen("log.txt", "w"); fwrite($fp, $bla); fclose($fp); header("Location: http://www.facebook.com/TheMcGonagalls"); ?>