Text Hit Counter: |
|
1) | Add the following code into your Home Page at the position of your
choice. <% set fso = createobject("scripting.filesystemobject") set act = fso.opentextfile(server.mappath("counter.txt")) counter = clng(act.readline) counter = counter + 1 act.close Set act = fso.CreateTextFile(server.mappath("counter.txt"), true) act.writeline(counter) act.close counter_length = len(counter) Response.Write counter |
2) | Create a file named counter.txt in
your home directory (Example: "c:/websites/yourcompany.com")
and store the value that you want in it (Example: 101)
|
For support please Dial: 8130029 / 8128771 / 8552754 OR Email: support@indiaaccess.com |