How can I have a text counter in my ASP pages ?

Root Folder > Web Hosting
There are many sample asp codes for hit counters. One can be found on the link attached to this article. Howerver you need to make a change there. You need to make a change into this line:

1- Copy your counter.txt file into _virtual_[username] folder.

2- Change this line

From :

strFileName = Server.MapPath("Counter.txt")

To:

strFileName = "e:\privatefiles\[username]\counter.txt

* Replace the [username] with your ftp user name.

See Also :http://www.devasp.com/samples/counter.asp

Add Feedback