RE: [PHP] getting ip of server

From: Date: Fri, 12 Aug 2005 14:07:57 +0000
Subject: RE: [PHP] getting ip of server
Groups: php.general 
Request: Send a blank email to php-general+get-220516@lists.php.net to get a copy of this message
[snip] I'm curious to know if there is a php command that can get the IP of the server it's running on. I could always do this... $results = exec("/sbin/ifconfig <ethernet device> | grep broadcast | awk '{print $2}'", $value); but I would prefer to not have to use system commands for this. Would anyone happen to know? [/snip] Have a look here http://us2.php.net/reserved.variables

« previous php.general (#220516) next »