dcole.ath.cx Posted August 25, 2006 Share Posted August 25, 2006 How can I have php find the IP address of the server it's on?$_SERVER['SERVER_ADDR']; got the local router IP address, and I wanted the network one that anyone can ping from my URL. so what php function can I use? Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted August 25, 2006 Author Share Posted August 25, 2006 I used gethostbyname('dcole.ath.cx'); and it got what I wanted Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now