View Single Post
Old 01-15-2007   #11
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default Re: Sponsor Quetion?

Ok, as I was putting together a sample, I decided that the ssi was not a good way, which might be what you were questing earlier rcourt. lol.

Sorry that's what happens when you are coding asp against sql server, php against mysql, foxpro and javascript pretty much all at the same time while you post on a message board. The brain gets pretty befuddled.

Anyway, a sample page is here http://www.bntnews.com/rcourt

The PHP version just writes a new record to a simple text file each time a link is clicked (actual tracking should be deeper than this, should capture date, time, page it came from etc) I was moving fast so I just wrote another line to the text file which is at http://www.bntnews.com/rcourt/track.txt

The html version is just a simple redirect using a meta tag redirect with a zero refresh and as I said earlier, you would get your counts from that by looking at your logs.

Yeah Toby, phpads can be used that way pretty easily, but there is a certain amount of overhead that goes along with that, but it will give you some pretty detailed data.

Like I said, many different ways to skin the cat


The code in redirect.php (the script for the php version) Like I said, an extremely simple example:

Code:
0)
  {
    fputs($checkit,$site . "\n");
    fclose($checkit);
  }
  # redirect to page
  header('location:http://' . $site . '.com');
?>
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote