(PHP 4 >= 4.1.0, PHP 5, PHP 7)
Queries the local side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type
bool socket_getsockname ( resource $socket, string &$addr [, int &$port ] )
Note: socket_getsockname() should not be used with AF_UNIX sockets created with socket_connect(). Only sockets created with socket_accept() or a primary server socket foll