Squalls_dreams Posted March 14, 2008 Share Posted March 14, 2008 hello I'm trying to find a good click counter to count how many people download my certain files. Does anyone know if a good and easy php click counter? Link to comment https://forums.phpfreaks.com/topic/96214-click-counter/ Share on other sites More sharing options...
ohdang888 Posted March 14, 2008 Share Posted March 14, 2008 well is the download on a special page(is it on a page devoted only to that download?) Link to comment https://forums.phpfreaks.com/topic/96214-click-counter/#findComment-492569 Share on other sites More sharing options...
Squalls_dreams Posted March 19, 2008 Author Share Posted March 19, 2008 I want a click counter that will count any files that I want to be counted. I had one before but it never really worked well so I thought maybe someone around here might know of a good one. Link to comment https://forums.phpfreaks.com/topic/96214-click-counter/#findComment-496050 Share on other sites More sharing options...
lemmin Posted March 19, 2008 Share Posted March 19, 2008 If this is strictly for downloadable content, a good way to do it is to write a file like getfile.php that is linked to for every downloadable file. In this file you accept the file name (get or post) and use that information to increment the clicks in your database. After you increment, you can send the user the file. Link to comment https://forums.phpfreaks.com/topic/96214-click-counter/#findComment-496058 Share on other sites More sharing options...
soycharliente Posted March 19, 2008 Share Posted March 19, 2008 I use a function and a db table field. Just start the INT field at 0 and write a function to add 1 to it every time the function runs. Put the function wherever you want. At the top of the page or inside some other block of code. Link to comment https://forums.phpfreaks.com/topic/96214-click-counter/#findComment-496061 Share on other sites More sharing options...
jkewlo Posted March 19, 2008 Share Posted March 19, 2008 why dont u just make it count++ for every time they download? and $rs->Field['Count'] or w/e Link to comment https://forums.phpfreaks.com/topic/96214-click-counter/#findComment-496072 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.