There is a page that receives post requests. How can I keep track of how many different ip addresses contact this address? You can save all the ip addresses in one array in the txt file or in the MySQL database. How can you implement such a function?

    1 answer 1

    You can get the address of each visitor from $_SERVER["REMOTE_ADDR"]; and save it to the database, simultaneously with each visit, call a function that will check if such an address exists in the database, if not, add