Trip
Registered
Hello,
I'm trying to do something really simple, but I'm having trouble figuring out how to do it.
Basically I'm trying to get the IP address of a user who visits a PHP page using "getenv("REMOTE_ADDR")" and then having the script record that IP into a text file. But I also want the same PHP script to first check the text file to see if the IP is already in it.
Make sense?
It should be simple, but because I have no real in-depth knowledge of PHP I can't figure out how to get it done. Help!
I'm trying to do something really simple, but I'm having trouble figuring out how to do it.
Basically I'm trying to get the IP address of a user who visits a PHP page using "getenv("REMOTE_ADDR")" and then having the script record that IP into a text file. But I also want the same PHP script to first check the text file to see if the IP is already in it.
Make sense?
It should be simple, but because I have no real in-depth knowledge of PHP I can't figure out how to get it done. Help!