[PHP] counting clicks

2006-11-29 Thread Ross
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. Ta Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] counting clicks

2006-11-29 Thread Jay Blanchard
[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;

RE: [PHP] counting clicks

2006-11-29 Thread Richard Lynch
On Wed, November 29, 2006 11:21 am, Jay Blanchard wrote: [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 =

RE: [PHP] counting clicks

2006-11-29 Thread Jay Blanchard
[snip] This has a race condition where a busy server, or even a not-so-busy one where 2 people happen to click at the same time, at least one of them will be missed, at best. There's also a distinct possiblity of the counter file getting completely trashed, depending on the OS and its underlying

Re: [PHP] counting clicks

2006-11-29 Thread clive
Ross wrote: 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. What about using mysql, but use a memory resident heap table, then every once in a while write this to a file or even better to a myisam table Ta Ross

[PHP] counting clicks on a flash ad

2002-10-29 Thread Ben-Nes Yonatan
Hi all! in the current site that im building there are flash banners for advertisment. now the owner of the site want to know how many times a banner got clicked and viewed. here i got a problem... the flash banners direct to another sites (changing all the time) and i cant figure out a way to