Question

HTML Code for counter

Asked by: rick81

Anyone know the html code for a counter.

I've looked around on the net but can only find sites that give u a counter but they come with crap attached to them.

Thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-02-03 at 21:22:56ID20872627
Tags

code

,

counter

Topic

Miscellaneous Web Development

Participating Experts
3
Points
50
Comments
22

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Counter?
    I have a homepage which I want to add a counter on how many person visited the said page. What I didn't understand is how do I create my homepage... Will it be on perl so that it automatically display my homepage with counter itself. Or will i write it on html and call...
  2. Counters
    How do you add counters in HTML to intranet pages?
  3. Counter
    How to add a counter to my html where i can to how many people are enter my homepage.
  4. counters
    how to create counters using html

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: dorwardPosted on 2004-02-04 at 01:27:49ID: 10269432

There is no HTML code for a counter, HTML just structures information, a counter needs to _record_ information.

Generally counters are scripts which output either an image or some HTML.

http://www.cgi-resources.com/Programs_and_Scripts/Perl/Access_Counters/ has a large number scripts (note that you'll need server support for any script which is not 3rd party hosted).

 

by: donpricejrPosted on 2004-02-04 at 07:12:15ID: 10271530

I would stay away from CGI because the way in which it handles threads to the CGI program. My recommendation is to use a scripting language such as VBScript.

-Don

 

by: dorwardPosted on 2004-02-04 at 07:21:20ID: 10271596

The way in which is handles threads....

OK -

(a) For something as simple as this - that isn't really relevent. A touch of file locking will deal with it (or you can use a database which is even easier)
(b) You can't replace CGI with VBScript any more then you can replace a road with a car. CGI is just a way for the webserver to talk to a script, you can use any scripting language you like
(c) The most popular webserver (Apache 1.x) doesn't even do threading
(d) Perl doesn't have to run as CGI

 

by: donpricejrPosted on 2004-02-04 at 08:09:59ID: 10272027

I agree with your comments on Apache and you can write Perl which is exactly what I suggested, "My recommendation is to use a scripting language". To that end, did the Usr say it was Apache? No, I do not believe so. That being said, I am not trying to start a "pissing war", I am simply trying to educate the Usr.

>>You can't replace CGI with VBScript any more then you can replace a road with a car. CGI is just a way for the webserver to talk to a script, you can use any scripting language you like<<
Explain please??? VBScript is nothing like CGI in the way in which it operates. CGI is a poor construction of engineers throwing stuff together and others using it as a way to perform a function; hence, why other languages were created to thwart those problems.

-Don

 

by: dorwardPosted on 2004-02-04 at 08:16:32ID: 10272091

Apache (or another server) uses CGI to execute a program and returns the output of that program to the client (possibly adding a few extra http headers on the way).

This program could be written in Perl, VBScript, C, LISP, Python, Ruby, Postscript, or just about any other programming language.

CGI is not a language, its a protocol, and aside from its performance issues, a very good one (becuase its very flexible).

 

by: pepsichrisPosted on 2004-02-04 at 09:02:58ID: 10272612

Anyway - Rick:

You have 2 choices - either script it yourself, or use somebody else's (the 3rd party Dorward mentioned).

The third party deals normally come with the "crap" you mention, as they want something back for their effort, so you probably want to script it yourself.

You need to find out if your server supports a Server Side Scripting language, eg ASP, PHP or Perl.  Once you know what you can use, go and Google, for example:

simple counter asp

and you'll get loads of short scripts the do it for you, that either store the info in a database or in a text file.

It's nice and easy, but as Dorward said, it can't be done in just html.  I wouldn't worry too much about the CGI debate - what you're doing is very low level as far as performance is concerned, so it'll make very little difference - just pick the one that you are most comfortable with.

Finally, I'd advise against using Counters - ugly things!  The only people who care about them are the people who design the site, and you can usually get that kind of info off the guys who host your website, but that's just an opinion.

 

by: dorwardPosted on 2004-02-04 at 09:04:40ID: 10272629

> You have 2 choices - either script it yourself, or use somebody else's (the 3rd party Dorward mentioned).

No, both the options I suggested were using somebody elses, there are so many out there that coding from scratch is a waste of time (except possibly as a learning exercise). The 3rd party is who executes it for you if you can't run scripts on your own server.

 

by: donpricejrPosted on 2004-02-04 at 09:07:09ID: 10272652

>>Apache (or another server) uses CGI to execute a program and returns the output of that program to the client (possibly adding a few extra http headers on the way).

This program could be written in Perl, VBScript, C, LISP, Python, Ruby, Postscript, or just about any other programming language.<<

Yes, I am with you and I agree.

>>CGI is not a language, its a protocol, and aside from its performance issues<<

It is these "performance issues" that you speak of that I warn the Usr. Performance from a protocal that only handles one request at a time, is more times than not, the problem with bottlenecks. Hence, the reason for my original comment, "I would stay away from CGI because the way in which it handles threads to the CGI"

This is a good discussion! :)

I take it you are not a MS fan, huh?

-Don

 

by: dorwardPosted on 2004-02-04 at 09:13:48ID: 10272738

CGI doesn't handle only one request at a time, the server spawns a new process for each request. The performance issues are down to it taking time to spawn the new process then something which is stored in memory (like mod_perl), but not due to any threading.

 

by: pepsichrisPosted on 2004-02-04 at 09:30:43ID: 10272916

Sorry Dorward - I think you misunderstood me as I worded it badly.

I would re-explain, but I think you've done that quite nicely.  No points for me in this Q, incidentally.

 

by: donpricejrPosted on 2004-02-04 at 09:53:07ID: 10273141

Dorward,

With all due respect, we must get back on tangent for the Usr. I believe that we have a disconnect, but that is neither here nor there. Although I do enjoy it!

rick81,

Look into Webtrends by NetIQ. This may have all of the data you want without any coding, except adding JavaScript to the pages you want to track. It is an excellent program, but it does cost money.

There are many of these types of service providers out there and they may meet your needs, too. pepsichris and Dorward make excellent points that should be considered, as well.

Regards,

Don

 

by: donpricejrPosted on 2004-02-05 at 16:56:40ID: 10286128

Dorward,

Here is an excerpt explaining more elegantly what I was purporting: "When a server receives a request that accesses a CGI program, it must create a new process to run the CGI program and then pass to it, via environment variables and standard input, every bit of information that might be necessary to generate a response. Creating a process for every such request requires time and significant server resources, which limits the number of requests a server can handle concurrently. Figure 1-1 shows the CGI life cycle. "

This may be found at this URL should you doubt its authenticity: http://pub.spccatv.com.cn/~rison/servlet/ch01_01.htm

By the way this is O'Reilly and I think that it is safe for me to assume that you trust them if you don't trust me.

-Don

 

by: dorwardPosted on 2004-02-05 at 22:58:02ID: 10288029

Which is what I said... (and isn't hugely significant, especially if the server has a fair bit of memory and a fast CPU).

 

by: donpricejrPosted on 2004-02-06 at 09:43:34ID: 10291692

Dorward,

Okay. I guess that what I was saying is what you were saying and what you were saying I was saying. Most servers are not fast and do not have a lot of memory and do not have fast CPUs because they were purchased before April of '00 (the Internet Crash-if you will). Therefore, my comment is significant.

-Don

 

by: dorwardPosted on 2004-02-06 at 10:07:46ID: 10291917

That is something of a sweeping statement, and doesn't take into account the load on the server.

 

by: donpricejrPosted on 2004-02-06 at 11:32:52ID: 10292707

It is but if we accept your previous comment than we must make the assumption that your comment was "a sweeping statement", as well.

Out of curiouosity and with all DUE RESPECT, are you a web developer? Do you develop on the freeware side, such as PHP, Apache, etc., etc.?

To put it in perspective, I am a MS person. I do use Apache and other freeware/shareware type tools, but for the most part I try to stay on with MS. I do not have a BS in Comp. Science, but rather Finance with 6 years experience in computer-related experience with db, Internet, network, yada, yada, yada. To that end, I am sure that you are more knowledgable in this discussion that we are having than I. I enjoy this because I am learning, too!

Thank you,

Don

:)

 

by: donpricejrPosted on 2004-02-06 at 11:33:58ID: 10292724

I like your comment, "web authors practised standards compliant, accessible webdesign" in your profile. I think this is very applicable in the business environment, as well.

-Don

 

by: dorwardPosted on 2004-02-06 at 11:46:15ID: 10292843

I think that as the discussion is rapidly heading towards an exchange of "my qualification if bigger then yours", there isn't much point in continuing it.

 

by: donpricejrPosted on 2004-02-06 at 12:45:12ID: 10293551

Dorward, that is not the point. Hold on their Cowboy. I was actually say'n that you are probably more qualified than I am. Damn. You engineers, as you call yourselves, simply cannot take a compliment. Do I know my stuff, yes. Am I good at what I do, yes. Does my salary at the age of 25 show that, yes. Does that mean that I good, no. I was actually saying that you are probably more accurate in what you are saying than I am. Therefore, learn to take a compliment or you will continue to be an engineer into retirement...haven't you learned this yet, or are still a Type B personality?

I WAS BEING COMPLIMENTARY AND BEING SUBMISSIVE. Have you forgotten what, "with all due respect" means?

-Don

 

by: dorwardPosted on 2004-02-06 at 13:02:46ID: 10293755

> Have you forgotten what, "with all due respect" means?

"With no respect whatsoever" usually :)

I don't want to start listing qualifications, and I still don't see that any further relevent information can come out this, so there isn't much point in carrying on.

 

by: donpricejrPosted on 2004-02-06 at 13:21:12ID: 10293947

To each their own. I was simply trying to carry on a reasonable discussion. My apologies if I offended; that was certainly not my intention.

Respectively,

Don

 

by: pepsichrisPosted on 2004-02-06 at 20:05:15ID: 10296562

Yeah, anyway.

I'm getting too many e-mails about this, over something which isn't relevant anyway.

Any disagreement is continued in the lounge, any compliments the same.  The subject here is the user's question, and that isn't being discussed in your debate.

Wording doesn't matter, the point doesn't matter - the user has comments to reply to, and maybe they'll reply at some point, but it's not fair to drag them into it.

Don - no offence but I've had a lot more to do with Dorward, and I know him and have seen his work, so therefore respect him big time, so I'm on his side throughout, but that's not the issue.

This user gave us a simple question, we've given answers.  The debate you're having may be continued at:

Q_20876458

There's no reason to continue it here.

I know you both have points, but the questioner doesn't need this!

No more of this debate here, only stuff for the user.

I hope you'll agree, but I realise I'm not exactly an authority as I'm a recent joiner to this arena, but it's the user that matters for the most part, as I understand it, and we work to keep things good for them.

Argue with me in the topic I provided - I feel that's the right way to do it.  Thank you!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...