Jump to content

Page Counters?


davej

Recommended Posts

I looked up a local "Advanced HTML" course offering and the description was: "Use of tables; creation and use of frames; construction of forms; imagemaps; working with external media (sound and animation): incorporating counters, guestbooks, and search engines; use of "meta information" tags; and a discussion of HTML editors and converters will be presented." Now of the above, I've never implemented a page counter or a guest book. So what is the standard approach for an HTML page? A Perl script? Thanks.

Link to comment
Share on other sites

I think the big issue is sql or no sql. You could just use php files to keep track of values if you'd like.

Edited by niche
Link to comment
Share on other sites

I think the big issue is sql or no sql. You could just use php files to keep track of values if you'd like.
So the HTML page calls a PHP script? I've never done that. Looking around the web I see these page counters are essentially "mystery code" that people add to their webpages with no understanding of how they work.
Link to comment
Share on other sites

The PHP page could do it itself, or you could have Javascript on the page update the counter. Either way, you need some persistant form of storage, either a file, or a DB. That requires a server-side language, regardless.

Link to comment
Share on other sites

The simplest form you can make is by having a text file where you can store the numbers of visitors and increment the number every time a new visitor arrives at your index page. This can be enhanced into the same form but with SQL to store the numbers of the visitors.

Link to comment
Share on other sites

Hmm, that course doesn't sound too good. In their course description they have "usage of tables" and "creation and use of frames" as the first things on their list. HTML "converters" doesn't sound good to me either. Guestbooks, counters and other things like that have nothing to do with HTML at all.

Link to comment
Share on other sites

Guest So Called

A page view counter would be easy to implement in PHP. The accumulated total could be kept in a flat text file. I did that a dozen years ago before I became fluent in MySQL.

  • Like 1
Link to comment
Share on other sites

Guest So Called
I looked up a local "Advanced HTML" course offering and the description was: "Use of tables; creation and use of frames; construction of forms; imagemaps; working with external media (sound and animation): incorporating counters, guestbooks, and search engines; use of "meta information" tags; and a discussion of HTML editors and converters will be presented."
Giving that more thought, the course doesn't sound like "advanced HTML" to me. It sounds more to me like giving somebody an advanced illusion that they know something about HTML and web page design while in fact teaching them only cursory notions of tidbits to plug in to web pages.
Link to comment
Share on other sites

[...]Guestbooks, counters and other things like that have nothing to do with HTML at all.
Yeah, it sounds like a class to teach you to take a plain HTML page and add lots of gadgets to it.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...