Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2003-11-13, 02:36 PM   #1
Marius
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!
Marius is offline   Reply With Quote
Old 2003-11-13, 03:31 PM   #2
guschi2k
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
 
guschi2k's Avatar
 
Join Date: Oct 2003
Location: right here
Posts: 75
Send a message via ICQ to guschi2k
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";
i found that piece of code a while ago and use it to count all the traffic is send to specific urls

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
guschi2k is offline   Reply With Quote
Old 2003-11-13, 04:33 PM   #3
Verbal
Verbal prefers 56K
 
Verbal's Avatar
 
Join Date: Sep 2003
Location: Chicago, IL
Posts: 563
Send a message via ICQ to Verbal
Hey Marius,

You might wanna check out phpAdsNew .

It's a free and very powerful! |


Peace,
Verbal
__________________
Verbal
Verbal is offline   Reply With Quote
Old 2003-11-13, 06:12 PM   #4
Marius
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?
Marius is offline   Reply With Quote
Old 2003-11-13, 08:46 PM   #5
Verbal
Verbal prefers 56K
 
Verbal's Avatar
 
Join Date: Sep 2003
Location: Chicago, IL
Posts: 563
Send a message via ICQ to Verbal
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
Verbal is offline   Reply With Quote
Old 2003-11-13, 09:23 PM   #6
lordaron
Trying is the first step towards failure
 
Join Date: Sep 2003
Location: Norway
Posts: 128
oh another dude from norway, cool
lordaron is offline   Reply With Quote
Old 2003-11-14, 02:42 PM   #7
Marius
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?
Marius is offline   Reply With Quote
Old 2003-11-15, 05:29 AM   #8
{fusion}
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 28
Send a message via ICQ to {fusion}
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}
{fusion} is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:58 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc