RE: getting ip of server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux