View Single Post
Old 12-19-2008, 03:22 PM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by Retox Josh View Post
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]")"}'
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 12-19-2008 at 03:24 PM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote