RE: [PHP] counting clicks

This is a discussion on RE: [PHP] counting clicks within the PHP General forums, part of the PHP Programming Forums category; [snip] Anyone got a script so I can count clicks on adverts. Doesn't have tosve to myqsl or anything ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-29-2006
Jay Blanchard
 
Posts: n/a
Default RE: [PHP] counting clicks

[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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:02 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0