I used the answer to this question to save the IP in a text file: How to save the IP of who visited my site in a text file?
This is what I want to create a "like" button for students to enjoy those they think are the best teachers.
But how do you prevent a student who has already enjoyed short-
I figured that having a text file for each teacher, inside a folder, with the number of ips they enjoyed would be a solution. Could the database be too long or does it work?
I know I can use Facebook plug-ins, for example, but what if my site's colors do not match anything on the face, or if for example this system works on an intranet? Anyway I want to know the logic to achieve this goal.