# Asp+Flash Hit Counter

**URL:** https://forum.kirupa.com/t/asp-flash-hit-counter/55825
**Category:** programming
**Created:** [June 28, 2004, 7:38am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825 "2004-06-28T07:38:56Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)
#### Post date: [June 28, 2004, 7:38am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/1 "2004-06-28T07:38:56Z")

</div>

hie there…  
i want a flash hit counter and in the backend i want to use ASP as my server dont support PHP , so it would be really helpful if some one out there who can provide me with the complete TUTORIAL. how to retrive data from asp and what “code” should i put on asp to count the no. of users visiting my webpage.  
thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 3, 2004, 9:15am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/2 "2004-07-03T09:15:18Z")

</div>

me waiting 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 3, 2004, 10:50am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/3 "2004-07-03T10:50:05Z")

</div>

You may download the files from  
[http://www.digi-designs.net/digios/Flash\_ASP\_hitcounter.zip](http://www.digi-designs.net/digios/Flash_ASP_hitcounter.zip)

I inserted a read me file in the pack. If you need any help contact me via MSN Messenger([coskunosman@hotmail.com](mailto:coskunosman@hotmail.com)).

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 4:08am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/4 "2004-07-07T04:08:00Z")

</div>

> [@Osman](#):
>
> I made a hit counter before.  
> [http://www.digi-designs.net/digiOs/digios.asp](http://www.digi-designs.net/digiOs/digios.asp) (Click the “i” icon on the bottom left side of page.)  
> This uses asp + access to track hit count.  
> If you want i can send you a sampla page and database releated files.

Can you send me the code for counter in asp that you made?

Thank you

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 7:16am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/5 "2004-07-07T07:16:08Z")

</div>

[http://www.digi-designs.net/digios/Flash\_ASP\_hitcounter.zip](http://www.digi-designs.net/digios/Flash_ASP_hitcounter.zip) you can d/l the files here

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 1:42pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/6 "2004-07-07T13:42:18Z")

</div>

I couldn’t get it to work… I did the three steps outlined. Maybe I don’t understand the reference to the swf file. Need help. Looks cool and do have a need.

Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 1:46pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/7 "2004-07-07T13:46:20Z")

</div>

If it makes a difference. I am on an IIS server and I am able to run asap…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 1:58pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/8 "2004-07-07T13:58:01Z")

</div>

As well, it may be the global.asa file. The only reason why I state this is because the flash doesn’t show any numbers for number of users that visit the site as well as how many are currently viewing it.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 2:15pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/9 "2004-07-07T14:15:28Z")

</div>

I try to run yours, after run zip to unpackage the files, from my IIS server and still get the same results as stated above.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 8, 2004, 6:57am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/10 "2004-07-08T06:57:29Z")

</div>

ccdenny3;

What OS are you using?  
If you are on WinXP or Win2000 you should have IIS installed on your pc.If you are on Win98 Personal Web Server have to be installed.

If you have IIS or PWS on your there should be a root folder (c:\inetpub\wwwroot). What you need to is extract the files to a folder in (or directly to) root folder and change the database path in “Connections\connDigi.asp” .

The hit count is kept on database , the active or online users are traced via global.asa.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 8, 2004, 12:43pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/11 "2004-07-08T12:43:07Z")

</div>

Hi Osman:

I have an IIS server. My we site is found in “C:\Inetpub\wwwroot\devdesktop”.

The “Connections\connDigi.asp” entry states “C:\Inetpub\wwwroot\devdesktop\db\digid.mdb” I know it sees the database because if I change this to anything else, the text and numbers when you click on the “i” box doesn’t display. If it states that shown above, then the text does display (without the numbers).

The feature of displaying how many users have accessed the web site (utilizing the database) as well as how many are currently on line (global.asa) doesn’t display (the numbers). (I know I am redundant to above, just stating for my peace of mind)

I have the “global.asa” in “C:\Inetpub\wwwroot\devdesktop”.

Your help is well appreciated and look forward to your reply.

Thanks again…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 8, 2004, 12:47pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/12 "2004-07-08T12:47:30Z")

</div>

I think it’s my fault. I forgot to state that global.asa should be in the root folder. In this case C:\Inetpub\wwwroot\ is the place where global.asa should be located to work.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 8, 2004, 1:48pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/13 "2004-07-08T13:48:12Z")

</div>

I tried with no positive results ☹

Questions:  
If it doesn’t see the database, the text itself doesn’t display, correct?  
If it does see the database, it displays the text, correct?  
Reading the database and updating it then may be a read/write issue?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 8, 2004, 6:44pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/14 "2004-07-08T18:44:56Z")

</div>

Thanks. I can do that only in the evenings on EST. I will try to catch you. One thing I noticed is that you reference a drive mapping while I am referencing a UNC. IE E:\db or C:\inetpub\wwwroot\devdesktop while I am doing [\amsapp11\devdesktop\db](file://\amsapp11devdesktopdb). Maybe the problem lies here?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 12:11am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/15 "2004-07-09T00:11:47Z")

</div>

What time are you on Eastern Standard Time to chat via msn? Otherwise, maybe if you have an AOL account during the day, we can chat that way?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 2:19am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/16 "2004-07-09T02:19:56Z")

</div>

Ok. So, here I am at home with an IIS server with ASP capability. I downloaded your zip file.  
In C:\Inetpub\wwwroot est (the root of this web site), I put the global.asa file.  
In the C:\Inetpub\wwwroot est\connections, I modify the conndigi.asp file so the database is equal to "C:\Inetpub\wwwroot est\db\digid.mdb"  
I didn’t modify the C:\Inetpub\wwwroot est\counter.asp. I left that pointing to hit\_counter.asp.

I assume that I execute “hit\_counter.asp” to launch for everything to work.

I get the following error and I rebooted the IIS Service in hope to resolve. I get the same error. That error is as follows:  
HTTP 500.100 - Internal Server Error - ASP error  
Internet Information Services

* * *

Technical Information (for support personnel)

Error Type:  
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)  
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.  
/test/counter\_db\_inc.asp, line 28

At work, it never errorred out…

Hope this helps in trying to resolve my problem.

Thanks again. If you have AIM account, I can chat at work with that.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 3:11am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/17 "2004-07-09T03:11:36Z")

</div>

OK… I finally got it working. However, the problem lies here. Showing the “on-line” users works. However, the increment of the web site doesn’t. How do I fix that? I looked at the database and it looks like I need to enter the path of where the html file or asp file is located for this to work. Can you shed some light on that?

Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 3:22am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/18 "2004-07-09T03:22:34Z")

</div>

I did get it working. To get it working, I had to make a copy of the “hit\_counter.asp” and then rename that copy to “hit\_counter.html”. Didn’t want to rename the original just in case. So the “hit\_counter.asp” is not being used. That is how I got the page to start working.

If I execute the “hit\_counter.asp”, it errors out with the following:  
HTTP 500.100 - Internal Server Error - ASP error  
Internet Information Services

* * *

Technical Information (for support personnel)

Error Type:  
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)  
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.  
/test/counter\_db\_inc.asp, line 28

If I execute “hit\_counter.html”, it doesn’t error out. However, the numbers don’t increment on how many visitors the site had. So, that is the current problem I have.  
For the global.asa and conndigi.asp, I followed the directions in the readme file.

If you can shed the light on the counter issue, it sure would help me out.

Thanks again…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 11:59am UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/19 "2004-07-09T11:59:49Z")

</div>

I did get it working. To get it working, I had to make a copy of the “hit\_counter.asp” and then rename that copy to “hit\_counter.html”. Didn’t want to rename the original just in case. So the “hit\_counter.asp” is not being used. That is how I got the page to start working.

If I execute the “hit\_counter.asp”, it errors out with the following:  
HTTP 500.100 - Internal Server Error - ASP error  
Internet Information Services

* * *

Technical Information (for support personnel)

Error Type:  
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)  
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.  
/test/counter\_db\_inc.asp, line 28

The numbers don’t increment on how many visitors the site had. I added an entry called hit\_counter.html in the database because the program didn’t add it automatically. If I execute “hit\_counter.html”, it doesn’t error out. For the on-line users increment, that keeps adding up everytime I open a new session. Though I am the only one on it. So, this is the current problem I have.

For the global.asa and conndigi.asp, I followed the directions in the readme file.

If you can shed the light on the counter issues, it sure would help me out.

Thanks again…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 12:02pm UTC](https://forum.kirupa.com/t/asp-flash-hit-counter/55825/20 "2004-07-09T12:02:18Z")

</div>

Read only this reply and ignore all previous 🙂

I did get it working. To get it working, I had to make a copy of the “hit\_counter.asp” and then rename that copy to “hit\_counter.html”. Didn’t want to rename the original just in case. So the “hit\_counter.asp” is not being used. That is how I got the page to start working.

If I execute the “hit\_counter.asp”, it errors out with the following:  
HTTP 500.100 - Internal Server Error - ASP error  
Internet Information Services

* * *

Technical Information (for support personnel)

Error Type:  
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)  
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.  
/test/counter\_db\_inc.asp, line 28

I added an entry called hit\_counter.html in the database because the program didn’t add it automatically. The numbers don’t increment on how many visitors the site had. So, this is the current problem I have.

For the global.asa and conndigi.asp, I followed the directions in the readme file.

If you can shed the light on the counter issues, it sure would help me out.

Thanks again…

[Next page](https://forum.kirupa.com/t/asp-flash-hit-counter/55825.md?page=2)
