Hello, 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? Tom