[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

Reply via email to