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. I hope to see big numbers
Archived topic from Iceteks, old topic ID:1090, old post ID:9486
added home page counter
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
added home page counter
Honk if you love Jesus, text if you want to meet Him!
-
- Posts: 5140
- Joined: Fri Jan 10, 2003 1:14 am
added home page counter
Cool! This will be neat.
Only 10 minutes to make? You must have some skill, Red.
Archived topic from Iceteks, old topic ID:1090, old post ID:9499
Only 10 minutes to make? You must have some skill, Red.
Archived topic from Iceteks, old topic ID:1090, old post ID:9499
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
added home page counter
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.
Archived topic from Iceteks, old topic ID:1090, old post ID:9502
Archived topic from Iceteks, old topic ID:1090, old post ID:9502
Honk if you love Jesus, text if you want to meet Him!
-
- Posts: 5140
- Joined: Fri Jan 10, 2003 1:14 am
added home page counter
PHP does sound fun... It looks like one can do some very powerful things with it.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.
I'm glad to hear you're getting good with PHP. It must be satisfying.
Archived topic from Iceteks, old topic ID:1090, old post ID:9504
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
added home page counter
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
Archived topic from Iceteks, old topic ID:1090, old post ID:9540
Honk if you love Jesus, text if you want to meet Him!
- rovingcowboy
- Posts: 1504
- Joined: Wed Dec 18, 2002 10:14 pm
added home page counter
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
Archived topic from Iceteks, old topic ID:1090, old post ID:9543
roving cowboy/ keith
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
added home page counter
lol. Actually, in grade 4 I doubt I knew how to turn one on.
Archived topic from Iceteks, old topic ID:1090, old post ID:9544
Archived topic from Iceteks, old topic ID:1090, old post ID:9544
Honk if you love Jesus, text if you want to meet Him!