Drags111 Posted November 10, 2007 Share Posted November 10, 2007 Hello, how would I get the External IP of the computer running the php script, and store it in a var named curIP? Thanks! And if we need to we can get it from here: http://whatismyip.com/automation/n09230945.asp Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted November 10, 2007 Share Posted November 10, 2007 Here you go... <? $curIP = GetHostByName($REMOTE_ADDR); ?> Or this... <? $curIP = _SERVER["REMOTE_ADDR"]; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.