added home page counter

Announcements about the forum or services itself
Locked
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

added home page counter

Post 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
Honk if you love Jesus, text if you want to meet Him!
Chris Vogel
Posts: 5140
Joined: Fri Jan 10, 2003 1:14 am

added home page counter

Post 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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

added home page counter

Post 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
Honk if you love Jesus, text if you want to meet Him!
Chris Vogel
Posts: 5140
Joined: Fri Jan 10, 2003 1:14 am

added home page counter

Post 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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

added home page counter

Post 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
Honk if you love Jesus, text if you want to meet Him!
User avatar
rovingcowboy
Posts: 1504
Joined: Wed Dec 18, 2002 10:14 pm

added home page counter

Post 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
roving cowboy/ keith
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

added home page counter

Post 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
Honk if you love Jesus, text if you want to meet Him!
Locked