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
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Nice NogDog! Thanks for help. I am pretty newbie to serverside stuff and I really appreciate people like you who make my world a lot easier.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)