|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi everybody, let say you have that link
http://domain.com/file1.exe you have url and file name in mysql db and you want to count downloads of this file but not clicks on link. Just it name and it name is "Mobile", you have many files and url in db and you want to count all on this way. when you count all your files on that way then you can sort them by they clicks and you can make Top 10 downloaded files like Name1, Name2, Name3 etc so i want to know how that can be posible with mysql+php please help me, i think on that one week |
|
#2
|
|||
|
|||
|
counting downloads
You could create a redirector that starts the download and increments that
download in your database. If you want to view the top downloads then your query could be something like: "select file,quantity from downloads order by quantity desc"; And you could limit the the results to the top 5 by using the LIMIT statement. Hope this helps, |
|
#3
|
|||
|
|||
|
i know that but this redirector who will work on this way i think
http://domain.com/redirect.php?http...in.com/file.exe will get only urldecode and will put it but i think i can do this PHP Code:
this is not best way but will work ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Counter |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|