I am trying to make a simple unique hit counter with ip address and .txt file
but somehow this code is not working ..me using wamp server to test the code
this is my count.php
<?php
function hit_count(){
$ip_address =$_SERVER["REMOTE_ADDR"];
$ip_file = file("ip.txt");
foreach($ip_file as $ip){
$ip_single = trim($ip);
if($ip_address == $ip_single){
$found = true;
break;
}else{
$found = false;
}
}...
PHP:
from PHP https://ift.tt/2kBj6ki
via IFTTT

0 Comments