Spam Checker

 E-Mail Address
 Password



Help
Adding a counter to your website(Windows Host):

  • To add a counter to your commercial website. You will need to do the following:

    1. The page(s) you want to add a counter to must be renamed with the addition of ".asp" to the end of the filename. (so the server recognizes the counter)

         EXAMPLE: index.html is renamed default.asp

      (you may have to alter your BACK links to point to default.asp)

      The SSI counter is not limited to just the index, You can also use the counter on other html pages...for example page1.asp

    2. Once the file is renamed, you will need to add the following code into your document where you would like the counter to appear on your page:

      <%  
      Set fs = CreateObject("Scripting.FileSystemObject") 
      Wfile=server.mappath("\") & "counter.txt" 
      on error resume next 
      Set a = fs.OpenTextFile(Wfile) 
      hits = Clng(a.ReadLine) 
      hits = hits + 1 
      a.close 
      if error then 
      hits = 1 
      end if 
      
      Set a = fs.CreateTextFile(Wfile,True) 
      a.WriteLine(hits) 
      a.Close 
      %> 
        
      You are visitor <% =hits %>
      

    NOTE: The counter will only work when your file is on the server, if you are working on your page locally (on your computer) the counter will not show up.

Working Example:
You are visitor 546
Hit Reload/Refresh to bump it up one more

Adding a counter to your website(UNIX Host):

  • You have full cgi-bin access on our UNIX server, so you can run your own counter scripts (you can find them on the web ex: Matt's Script Archive)
  • © North Country Internet Access - 38 Glen Avenue - Berlin, NH 03570 - USA   Phone: (603) 752-1250 / 1-800-SYS-NCIA / FAX: (603) 752-8134