I've developed an ad system for a internet portal, and I was just wondering what the best way of count clicks on a banner is.
I'm currently using this method:
the ad-link points to a php file called linkref.php
so an example link would be: linkref.php?adid=555
the script then increments the number of clicks in the database on the current link and then echo's this line:
($url beeing the url for adid 555, of course
header("Location: " . $url);
But I'm wondering if this method is any good, some people has complained that the link dosn't work, and the hits dosn't show up on the target site stats (Awstats).
So to sum this up, is my method any good, and what other good method's are there for this job?