how to make a simple php hit counter without database?
this php code is very simple.but this hit counter will hit count 100% accurately.just copy paste and see the output
now view hit_counter.txt text file to see total hits.you can direct access text file from a web browser. yourdomain.com/path to hit_counter.txt
record visited user data without database
this php code record all visited user data. its a different php code. no need above code.
$val){
$datagroup.='|'.$key.':'.$val;
}
file_put_contents("visitor_data.txt",$datagroup."\n", FILE_APPEND);
?>
now view visitor_data.txt text file to see visitor data.
No comments:
Post a Comment