RE: counting clicks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
Anyone got a script so I can count clicks on adverts. Doesn't have tosve
to 
myqsl or anything just a text file will do.
[/snip]

<?php

if("yes" == $adClicked){
   $adClickCountFile = fopen("countClick.txt", "w");
   $getCount = fgets($adClickCountFile, 4096);
   $newCount = $getCount + 1;
   fwrite($adClickCountFile, $newCount);
   fclose($adClickCountFile);
}
?>

YMMV

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux