albator Posted March 22, 2005 Posted March 22, 2005 free web counter wich ? I seek for one withoud ads..
matrix0978 Posted March 22, 2005 Posted March 22, 2005 You could probably make a counter withtout those freebies.its PHP.Put this code in your webpage whereever you want it <?php include("count.php"); ?><br><? And then you need to make a .php file and put this code in<?php$COUNT_FILE = "hitcounter.dat";if (file_exists($COUNT_FILE)) { $fp = fopen("$COUNT_FILE", "r+"); flock($fp, 1); $count = fgets($fp, 4096); $count += 1; fseek($fp,0); fputs($fp, $count); flock($fp, 3); fclose($fp);} else { echo "Can't find file, check '\$file'";}?><!- Hit Counter --><center>This page has been viewed <b><?php echo $count; ?></b> times<br>and you need to make a file called 'hitcounter.dat' and put the number '0' in it(without quotes) and now your done.
albator Posted March 22, 2005 Author Posted March 22, 2005 thank, but my hosting doe'Snt support php I think.
matrix0978 Posted March 23, 2005 Posted March 23, 2005 http://www.statcounter.com/free_hit_counter.htmland also look at google!!!!!!
sonu27 Posted April 9, 2005 Posted April 9, 2005 Is there not a mistake in you code; the first part?Shouldn't it be ending in ?>
sonu27 Posted April 9, 2005 Posted April 9, 2005 Ok, thanks.Btw, I tried going on that sat counter site, but I guess my hosts file it blocking it. So never mind.I haven't got php hosting so I could not try it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now