1
I am wanting to set up a system to display the most popular images of my application. Today I list these images simply but efficiently: the folders become categories and list the images from within the folder. Then, the application reads the image link as the server url + category + image name.
To build a popularity system I thought of counting how many times someone clicked the share button and send this information to a Mysql database next to the category and the image name. So when I do the listing in PHP I can sort them by number of shares.
Can anyone help me how to do that? They know of an open source project that has something similar to try to learn?
You need to create a
webservice
, when clicking share, the app must send the name(unico) orhash
photo(or some unique identifier) for thewebservice
save in comicsmysql
server. In the bd you need to have a table that contains the identification of the photo, category and the sharing Qtd.– Skywalker