I have been trying since morning to create a simple php total hits like sharemobile. But it not just working can anybody help me
Simple text hit counter
Started on the old forum in March 2010 · view the original in the archive · old links redirect here
lol thats easy
here is a tutorial.. it will count unique visit's (ip adresses)so it will only add 1 hit per unique ip visit Simple PHP unique visitors counter | PHP programming/development tutorials | In obscuro
http://wapmayhem.co.ccmy wap portal http://weedreed.co.ccvirtual weed smoking site;)
just create today.txt and chmod this to 777.and then write these line into ur index page or wherever u want to show this counter.
$today= "1"; $fp = @fopen("today.txt", "a"); @fputs($fp, "$today"); @fclose($fp); $stat_count = @filesize("today.txt"); echo "Total Visitor : $stat_count"; THATS IT.BE SURE TO CHMOD TO 777.
khan89 wrote: just create today.txt and chmod this to 777.and then write these line into ur index page or wherever u want to show this counter.
$today= "1"; $fp = @fopen("today.txt", "a"); @fputs($fp, "$today"); @fclose($fp); $stat_count = @filesize("today.txt"); echo "Total Visitor : $stat_count"; THATS IT.BE SURE TO CHMOD TO 777.
Does not count unique visit's, i could click your index and use an auto refresher just to "bump" the hit counts up.
khan89 wrote: just create today.txt and chmod this to 777.and then write these line into ur index page or wherever u want to show this counter.
$today= "1"; $fp = @fopen("today.txt", "a"); @fputs($fp, "$today"); @fclose($fp); $stat_count = @filesize("today.txt"); echo "Total Visitor : $stat_count"; THATS IT.BE SURE TO CHMOD TO 777.
Does not count unique visit's, i could click your index and use an auto refresher just to "bump" the hit counts up.
why need to count unique visitor?he just need to have a simple hit counter and i gve it.thatz it mate.