wanting to get host name instead of ip
| From: | matt VanDeWalle | Date: | Fri, 11 Nov 2005 05:35:06 +0000 |
| Subject: | wanting to get host name instead of ip | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-225598@lists.php.net to get a copy of this message | ||
hello,
I was wondering, is there a way to get a connection's name(host's name instead of just ip),
i am using the cli version of php and am now using the function getpeername() but for example, i would like to be able to have it say something like "connection: localhost ...." instead of "connection: 127.0.0.1"
is this possible with the command line interface?
I am using php 4.3.10 on linux
matt