There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
bios black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers email error firefox firefox 3 game hard drive internet internet explorer itunes laptop malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem problems router security slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Stand alone WebPageCounter ?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Cushion's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Jan 2008
Experience: Intermediate
04-Mar-2008, 09:52 PM #1
Stand alone WebPageCounter ?
Hi there !
I have spent the last two days trying to find htlm code for a webpage counter that lives and collects the info. on my web site. All the ones i find divert the data somewhere else. Any Ideas? thanks
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
05-Mar-2008, 01:38 AM #2
I know of several, and have created a couple.
What programming language are you looking to get one in and what would you like it to do?

Just count and display hits, or give stats on browser types, times, pages viewed etc??
Cushion's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Jan 2008
Experience: Intermediate
05-Mar-2008, 11:17 AM #3
Well i am not sure which language is best but it just needs to count and display hits on a few pages ,just plain htlm !!!
cristobal03's Avatar
Distinguished Member with 2,992 posts.
 
Join Date: Aug 2005
Experience: Advanced
05-Mar-2008, 12:08 PM #4
If I understand what you're suggesting, it can't be done. You can't make a page counter strictly using HTML. Maybe you could approximate something with javascript, but I don't know how you'd achieve data persistence. You need to store the information on the hosting server or its proxy; HTML and javascript, by contrast, are client-side technologies.

In other words, this has to be done with PHP, Perl, ASP, CGI of some kind, or some other server-side technology. It will likely (but not necessarily) include a database.

chris.
Cushion's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Jan 2008
Experience: Intermediate
05-Mar-2008, 04:13 PM #5
Ok thanks for the info. I did have a counter that used a CGI script at the end of a html page, but lost it when i changed sites. It kept track of the hits right on my web space where the page index lives and displayed the hits on my opening page . I am not that familiar with code so i was hoping to find the lines on the web. george
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
05-Mar-2008, 05:43 PM #6
Perhap this one would work for you?
http://www.braemoor.co.uk/software/hitcounter.shtml

Once the script is inserted into your cgi directory, all you need is this to include it on your page.
Code:
<!--#include virtual="/cgi-bin/hitcounter.cgi?counter=countername&display=true"--> 
<script type="text/javascript">document.cookie = "countername=0";</script>
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:42 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.