I was thinking it be cool to have a simple matchmaker code in php. The idea is the app connect to the server or a specific webpage, the webpage takes it IP and the last X ips and prints it on page (his first)
problem is what happens when 5 ppl hit the page the same second. How do i handle it? i cant use global/shared memory? so i would need to write the IPs to a file and read/writing them everytime (10x the same second) would be bad? i guess its ok to be slow but i want this to be optimized if possible.
Is it better to store in a mysql db?