Quote:
Originally Posted by Retox Josh
I wondered this same thing, and have been on my spare time, writing a sig script that logs all views, and clicks on it so I can measure the CTR
|
PHP Code:
if ( !is_file($abs_path . '/cache/'.date('Ymd').'-'.$_SERVER['REMOTE_ADDR']) ) {
$fh = fopen($abs_path . '/cache/'.date('Ymd').'-'.$_SERVER['REMOTE_ADDR'], 'w');
fwrite($fh, $animation);
fclose($fh);
}
for the uniques
do a $i++ file write on a file for raw
and something else for clicks before a redirect to send them where they need to go
you know all this - you're just yanking my chain
--edit
that fwrite code is for my own sig, so as not to have to go through the whole processor-crunching stuff on every page load...I can grab uniques by the shell command:
Code:
ls -l | sed 1d | awk 'BEGIN{print "Month (Num Files)"}{count[$6]++}END{for(j in count) print j,"("count[j]")"}'