Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

What's wrong in this code ?

hello friends,

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:
What's wrong in this code ?

from PHP https://ift.tt/2kBj6ki
via IFTTT

Post a Comment

0 Comments