English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I wrote the code to count visitors to my website. I created both “global.asa" and "Home.asp" pages. It works with "IIS" but when I uploaded the website into the server it doesn't work. Please help me with the problem.

2007-06-12 04:38:53 · 4 answers · asked by desilva_sisira 1 in Computers & Internet Programming & Design

Thank you all. Here is my code please check this and comment.
File: index.asp
Your Session started at: <%= Session("Started") %>
There is currently <%= Application("active_users")%> user(s) visiting this site.
There has been a total of <%= Application("total_hits")%> visitors to this site
Total visitors: <%= Application("total_hits")%>



File:global.asa

2007-06-12 08:41:04 · update #1

4 answers

The easiest way to do a visitor count is to use one of the free sites that offer the service. To do it yourself it requires some web side processing to keep track of the counter. That is beyond my understanding.

Many sites that keep track for you for free will give statistics along with the counts, such as time of day, link origin, type of operating system, etc. Why reinvent what has already been developed?

2007-06-12 04:43:21 · answer #1 · answered by Barkley Hound 7 · 0 0

I agree with a previous answer that there are easier online solutions to use if all you are wanting is a visitor counter. Of course if you plan to go into more details (like current visitors online, etc), then ASP can work...

If you post the URL of the page in question, I may be able to help better as I am a ASP programmer. My best guess without seeing the details is that either your host doesn't support ASP (it's not a windows server?), or some component you may be using isn't supported, or your code is using specific path info from your local testing environment and that local path "breaks" when you upload it to your host. Do you get any kind of error reports when you try to view the page on the host? If so, those can really help narrow down the problem.

2007-06-12 11:52:49 · answer #2 · answered by finiousfingers 1 · 0 0

Is your web server a Linux, Unix or Windows?

If it is a Unix or Linux server, they cannot run .asp, just .jsp

2007-06-12 12:01:38 · answer #3 · answered by K-Disk.com 5 · 0 0

www.statcounter.com

2007-06-12 12:40:19 · answer #4 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers