Need free website counter suggestions!

ShawnReeves

Diamond Member
Apr 7, 2000
3,346
0
76
Im looking for a free counter but dont want alot of the crap that some have, like popups and what not.

Thanks,
~Shawn
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
open F, "count.txt";
$count = <F>;
close F;
open F, ">count.txt"
$count++;
print F $count;
close F;
print "Content-Type: text/html\n\n$count";
 

ShawnReeves

Diamond Member
Apr 7, 2000
3,346
0
76

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
Originally posted by: amonline
Originally posted by: Tyler
open F, "count.txt";
$count = <F>;
close F;
open F, ">count.txt"
$count++;
print F $count;
close F;
print "Content-Type: text/html\n\n$count";

I should have added I want it to be visable by the visitors. ;)

I could be wrong, but it looks like tyler just hooked you up with a little Pearl Script that does exactly what you asked, and does return the result. Thus the nice line print.

 

notfred

Lifer
Feb 12, 2001
38,241
4
0
If you run that as an SSI, it'll do exactly what you want. I don't want to expalin how to install it...

Upload, chmod 755, use <!--#include virtual="/cgi-bin/counter.pl" --> in your html file. Good enough instructions? :)
 

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
-- Thread hijack in progress --

Hey Tyler, you ever wonder about how to implement a voting poll with a graphical chart for results? As an example, go to Firingsquad.com and vote in the right-hand poll they have running. The results seem to be generated in real-time. I'd love to figure out how to use dynamic images like that if you've got an idea of where I should start.