|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » preg_match_all() » session_start() » htmlspecialchars() » ob_start() » ob_flush() » strstr() » flush() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: socket_getpeername (PHP 4 >= 4.1.0, PHP 5) socket_getpeername -- Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its typeDescriptionbool socket_getpeername ( resource socket, string &addr [, int &port] )If the given socket is of type AF_INET or AF_INET6 , socket_getpeername() will return the peers (remote) IP address in appropriate notation (e.g. 127.0.0.1 or fe80::1 ) in the address parameter and, if the optional port parameter is present, also the associated port. If the given socket is of type AF_UNIX , socket_getpeername() will return the Unix filesystem path (e.g. /var/run/daemon.sock ) in the address parameter. Note: socket_getpeername() should not be used with AF_UNIX sockets created with socket_accept() . Only sockets created with socket_connect() or a primary server socket following a call to socket_bind() will return meaningful values. Returns TRUE on success or FALSE on failure. socket_getpeername() may also return FALSE if the socket type is not any of AF_INET , AF_INET6 , or AF_UNIX , in which case the last socket error code is not updated. Related Function(s) |