Page 1 of 1

added home page counter

Posted: Sat Jul 12, 2003 11:36 pm
by Red Squirrel
I decided to program a counter for the home page. It only counts hits on the home page and not the whole site (which is why the numbers will be low). It counts unique hits (IPs) and total hits (same IP can be counted more than once).

Took me less than 10 minutes to make so I'm still making sure it works, but it seem to work fine. It resets every month. B) I hope to see big numbers :)

Archived topic from Iceteks, old topic ID:1090, old post ID:9486

added home page counter

Posted: Sun Jul 13, 2003 12:52 pm
by Chris Vogel
Cool! This will be neat.

Only 10 minutes to make? :eek: You must have some skill, Red. B)

Archived topic from Iceteks, old topic ID:1090, old post ID:9499

added home page counter

Posted: Sun Jul 13, 2003 1:06 pm
by Red Squirrel
Yep, I'm getting pretty good with php. And this is actually a very simple script and I already knew how I'd make it. It has two parts to it. One checks a list of IPs and if the viewer IP is not in it, it ads it and counts the list +1, displays the number, then there's another part that reads a number, upps it +1, writes it back and displays it. Php is fun. :banana:

Archived topic from Iceteks, old topic ID:1090, old post ID:9502

added home page counter

Posted: Sun Jul 13, 2003 1:14 pm
by Chris Vogel
Red Squirrel wrote: Yep, I'm getting pretty good with php.  And this is actually a very simple script and I already knew how I'd make it.  It has two parts to it.  One checks a list of IPs and if the viewer IP is not in it, it ads it and counts the list +1, displays the number, then there's another part that reads a number, upps it +1, writes it back and displays it.  Php is fun. :banana:
PHP does sound fun... It looks like one can do some very powerful things with it. <_>

I'm glad to hear you're getting good with PHP. It must be satisfying. B)

Archived topic from Iceteks, old topic ID:1090, old post ID:9504

added home page counter

Posted: Mon Jul 14, 2003 2:06 pm
by Red Squirrel
Yep, php is a great programming language. Though, it cannot be compared with something such as C++. Since C++ is a "client side" language, as in, it can make programs and such that run on a computer, while php is "server side" and is more of a scripting language which basically is to generate html. By looking at the source code, one would not be able to tell it's actually php since it just spits out html. That's what's cool about it. Dynamic pages.

Archived topic from Iceteks, old topic ID:1090, old post ID:9540

added home page counter

Posted: Mon Jul 14, 2003 4:19 pm
by rovingcowboy
:huh: :rolleyes: :rolleyes: ;)


no no no no. red does not have skill he is a squirrel he packs the codes away like nuts.

he did this counter thing in school in the 4th grade and it took him until the 9th grade to understand what it was he created.

what took 10 minutes was trying to figure out how to get it online.

and it took 10 minutes to figure out how to make this post and mess with red some :stir the pot:

:roflmao2:

Archived topic from Iceteks, old topic ID:1090, old post ID:9543

added home page counter

Posted: Mon Jul 14, 2003 4:22 pm
by Red Squirrel
lol. Actually, in grade 4 I doubt I knew how to turn one on. :roflmao:

Archived topic from Iceteks, old topic ID:1090, old post ID:9544