hi, need a code for simple visits counter , not designed counter-simple 1 that show the numbers in simple text. thanks.
something like this? <?php /* counter */ $datei = fopen("countlog.txt","r"); //opens countlog.txt to read $count = fgets($datei,1000); fclose($datei); $count=$count + 1 ; echo "<CENTER><FONT SIZE=\"3\" FACE=\"arial, verdana, helvetica\">you are vistor no.</FONT></CENTER>" ; echo "<CENTER><FONT SIZE=\"3\" FACE=\"arial, verdana, helvetica\">$count</FONT></CENTER>" ; echo "\n<br>" ; $datei = fopen("countlog.txt","w"); // opens to write and deletes the old count fwrite($datei, $count); fclose($datei); ?> h**p://www.arttrust.de/aslp_web/php/scripts/counter/counter.php3
You could also try statcounter.com for free site stats. The free version is limited, but very good for starters. T
I agree statcounter is great for starters and it's free. Do not - I repeat do not put a visable counter on your website - why would you want to?? To tell everyone how few visitors you get???? No, make use of a free stats package which will tell you where people have come from, what pages they visited, what keywords they used, which search engines etc. etc
Its not a big deal, I started with my counter at 0 unique IP hits visible to everyone and now its 378,000.
Hello! Can I ask a question does your hosting not provide access to reliable stats? Stat counters are all and well and they have their place. But in some places its like haveing a mirror on your website, for pure vanity. If you really are serious about your website which I am sure you are then you need to get a stats package that looks at your server logs. All the information is there! In terms of promoting your website and guageing its performance you need to do this!!! Good Luck!
Here is a list of counters you may find useful: PHP based counter ASP based counter Also, if you want, you can use some remotely hosted third party service, which usually brings more detailed website statistics counter (remotely hosted) .