Web page counter

Status
Not open for further replies.

CalcProgrammer1

Fully Optimized
Messages
2,363
Location
Illinois, USA
I just set up a simple Web server (Apache2) on my home server PC. I have a basic HTML page and it works fine. I'm wondering how you would add a counter to it. I've seen on some pages a counter that every time someone views the page, it goes up by 1. I have a feeling it would require some sort of scripting. I'm using Macromedia Dreamweaver MX2004 to edit my site. Does anyone know how to add one?
 
With Javascript or PHP (or any CGI language).

There are tons of tutorials, just Google hit counter.
 
You can get simple CSS-based counters quite easily where you simply copy and paste the code. Sometimes you need to sign up to sites to get them, and others such as javascript counters, you'll need to upload the .js file to the server etc. But yeah, search Google there's tonnes available.
 
Since you're running Apache2 just go to CPAN and get a simple perl script to do it for you. I'm sure you can find one somewhere there. While you're at it you can implement text based Tetris :p. My Perl prof showed me that one hehe.
 
Status
Not open for further replies.
Back
Top Bottom