|
|
|
|
|
|
|
|
|
#1 |
|
Rock stars ... is there anything they don't know?
Join Date: Nov 2003
Posts: 15
|
Hits-sent counting software
Hi,
We're looking for some software that will count and manage hits sent to sponsors from our pages. It must be able to handle 100000+ a day without killing the servers. We've thought about some circlejerk program but just thought I'd ask here if some of you have recommendations, or even something for sale? Thanks! |
|
|
|
|
|
#2 |
|
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
|
if you just want to count the traffic you sent to a specific url and don't need any fancy administration / stats GUI
Code:
#!/usr/bin/perl
# Set Variables
# This is the counter log filename
$databasefile = '../html/stats/iwonderiftheycounallthetrafficisend.txt';
# This is your main URL path
$YourURL = 'http://www.domain.com';
##########################################################
$originallink = "$ENV{'QUERY_STRING'}";
# v3.5 - Get remote file
if ((substr($originallink, 0, 7) eq 'http://') ||
(substr($originallink, 0, 6) eq 'ftp://')) {
$link = $originallink;
}
else {
$link = "$YourURL/$originallink"; # YourURL + Link to file
}
open(DB,"+<$databasefile") || die $!;
flock(DB,2); # Locking file
seek(DB,0,0);
@DATA = <DB>;
$SIZE = @DATA;
$i = 0;
while ($i <= $SIZE) {
($counter,$oldlink) = split(/`/,$DATA[$i]);
chop($oldlink);
if ($oldlink eq $originallink) {
$counter++;
$DATA[$i] = "$counter`$originallink\n";
goto LocateLink;
}
$i++;
}
push @DATA, "1`$originallink\n";
LocateLink:
@DATA = sort {($b =~ /(\d+)/)[0] <=> ($a =~ /(\d+)/)[0]} @DATA;
seek(DB,0,0);
print(DB @DATA);
truncate(DB,tell(DB));
flock(DB, 8); # Unlocking file
close(DB);
print "Location: $link\n\n";
you just need to create a *.txt file and start to send all traffic through count.cgi or however you want to name it ![]() i'm sure it can handle 100k clicks per hour without slowing your server down. ![]()
__________________
Tonys XXX Links wants your quality free sites|king| Pleeeaaase help & save my addiction SaveEnterprise |
|
|
|
|
|
#4 |
|
Rock stars ... is there anything they don't know?
Join Date: Nov 2003
Posts: 15
|
Thanks Verbal, someone posted the same to me on another board.
But I didn't get any url, so I couldn't find it. (they called it something slightly different) Gonna give it a try, have you tried it yourself Verbal? |
|
|
|
|
|
#5 |
|
Verbal prefers 56K
|
Marius,
Yes, I'm still testing and tweaking it on my domains. There's so many features it takes a bit to get it all up and going. I like how you can run ad campaigns, track hits across multiple domains, do geo-targeting and a lot of other useful options. It's the best ad server software I've used so far. And you can't beat the price! ![]()
__________________
Verbal |
|
|
|
|
|
#6 |
|
Trying is the first step towards failure
Join Date: Sep 2003
Location: Norway
Posts: 128
|
oh another dude from norway, cool
![]() |
|
|
|
|
|
#7 |
|
Rock stars ... is there anything they don't know?
Join Date: Nov 2003
Posts: 15
|
Thanks for the info Verbal.
Installing it now, looking forward to see how it works. I just saw that and |Jim uses it on this site as well.That's right Lordaron, I'm from Norway too I currently live in Spain. What about you? |
|
|
|
|
|
#8 |
|
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
|
Hi check out
http://www.nibbi.net/scripts/EzClickStats.php only $15.00 USD and very well coded, nice light code and works well.
__________________
{fusion} |
|
|
|
![]() |
|
|