[nycphp-talk] Getting IP address from $_SERVER
Cliff Hirsch
cliff at pinestream.com
Tue Oct 9 12:53:24 EDT 2007
I am trying to get the server address of my development server, but
$_SERVER[remote_addr¹] and $_SERVER[server_addr¹] keep giving me the
localhost addr (127.0.0.1). Kinda makes it hard to create a URL for
redirects.
The IP address should be 192.168.168.###, based on the current DHCP setting.
How do I get the IP address of the machine?
Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071009/d60fd6cd/attachment.html>
More information about the talk
mailing list