Print Page | Close Window

Hit counter

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24247
Printed Date: 28 March 2026 at 1:10am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Hit counter
Posted By: codeguru
Subject: Hit counter
Date Posted: 23 August 2007 at 7:11am
Can someone please explain to me how to create a hit counter. Any help would be appreciated.


-------------
www.coderewind.com
Best Place to hunt for Code



Replies:
Posted By: KCWebMonkey
Date Posted: 24 August 2007 at 2:59pm
the easiest ones use FSO (FileSystem Object) and ASP. just do a google search and there's ton's of examples/code snippets.


Posted By: codeguru
Date Posted: 08 September 2007 at 11:57am

Thanks



-------------
www.coderewind.com
Best Place to hunt for Code


Posted By: shakir
Date Posted: 14 November 2007 at 7:39am
you can get javascript, or you can use asp application varible.. each hit increes the count of the variable.


Posted By: alemcherry
Date Posted: 21 January 2008 at 6:56pm
You need a PHP/ASP script that would increment a count and save it in file / database. You may need the ability to generate a nice looking counter image dynamically, based on the value stored. Some PHP skills with GD?imagemagic will be enough. You might be able to find a number of ready made scripts with different levels of complexity in hotscripts.


Posted By: empkeydotcom
Date Posted: 13 April 2008 at 8:14am

It is free to download.



Posted By: alemcherry
Date Posted: 20 April 2008 at 8:23am
tons of free downloads available - php/asp, file sytem/database , basic/very complex. get the one of your choice and go.

If you are serious about checkign stats of your site, use google analytics insteads. Hit counters are ameturish.


Posted By: empkeydotcom
Date Posted: 09 May 2008 at 7:34pm
I ultimately set up a wondeful web counter which allows a number of different counter styles. In addition, it has plenty of statistical charts, all are free.
http://www.empkey.com/?page=wcounter_com - Just take a look and register right now!


Posted By: jamie.townsend
Date Posted: 13 May 2008 at 9:26am
code taken from w3schools.com

<%
Set FS=Server.CreateObject("Scripting.FileSystemObject")
Set RS=FS.OpenTextFile(Server.MapPath("counter.txt"), 1, False)
fcount=RS.ReadLine
RS.Close

fcount=fcount+1

'This code is disabled due to the write access security on our server:
'Set RS=FS.OpenTextFile(Server.MapPath("counter.txt"), 2, False)
'RS.Write fcount
'RS.Close

Set RS=Nothing
Set FS=Nothing

%>

<html>
<body>
<p>
This page has been visited <%=fcount%>  times.
</p>
</body>
</html>



Posted By: Videoediting
Date Posted: 07 August 2008 at 1:26pm
 void Application_Start(object sender, EventArgs e)
    {
        // Code that runs on application startup
count++;

    }
You have to access this count in your page

Cheers,

SPBig%20smile
http://www.videoediting-direct.co.uk


Posted By: emily12
Date Posted: 28 August 2008 at 10:08am
In the front page software  tool is   available .   you can add counter by using  this tool.



-------------
http://www.webdesigningcompany.net/ - design a website
http://freetemplates.webdesigningcompany.net/ - free templates



Posted By: davemac
Date Posted: 04 September 2008 at 6:12am
I keep it really simple. I cheat. What I do is use a program called coffee cup web form builder . I create a web form with only a submit button on it. I rename the button to something like "free anti-virus" program & place it on my web site. When some clicks the button it takes them to a free antivirus site like avg free and it emails me that someone pressed the button. People can't resist free stuff.
 
This might be a bit confusing to you but take a look at my business site http://www.4420115.com - www.4420115.com .
 
If you want me to make you a button to place on your site. Simply tell me what you want the button to say -- ex. free desktop wallpaper or whatever & give me address of the site you want your visitors to be taken to. It can also simply be a link to another page on your web site. If you want me to build it give me your email address & I will configure the button to send you an email when someone clicks the button .
 
Or if you want to download the free trial coffee cup web form & tinker with it I can answer any questions you may have.
 
Good Luck
Paris Geek


Posted By: dimpi
Date Posted: 04 July 2009 at 7:26am
Go for a google search and you'll get free codes for lots of free Hit counters. All you need to do is just paste this code inside your website's html code and It'll be all.


Posted By: Gopal86
Date Posted: 17 July 2010 at 1:40pm
The above code helps me a lot in implementing hit counter.


Thanks.......



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net