How would I go about finding the ip address of my viewer and then figuring out what city/state they are viewing from? Thanks for the help. I hope this is understandable.
$_SERVER['REMOTE_ADDR'] to get the IP, then subscribe to or buy an IP-to-location database (or try one of the free ones, though you may get what you pay for).
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks