View Single Post
Old 01-15-2007   #13
Rcourt64
Filling Bishop's Pond
Respin bullshit press Your Comments Are Welcomed
 
Rcourt64's Avatar
 
Join Date: Feb 2006
Posts: 2,942
Default Re: Sponsor Quetion?

Quote:
Originally Posted by sarettah View Post
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');
?>

WOW thanks, I need to re read it over about another 100 times before it sinks in..LOL. But thanks
Rcourt64 is offline   Reply With Quote