note 28685 deleted from function.socket-getpeername by nlopess
| From: | nlopess@php.net | Date: | Fri, 11 Aug 2006 18:14:17 +0000 |
| Subject: | note 28685 deleted from function.socket-getpeername by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115805@lists.php.net to get a copy of this message | ||
Note Submitter: chrisw at ss dot net dot au
----
Just to help others using this command, i wrote up a quick example to save you time.
socket_getpeername($socket, &$connectip);
echo $connectip;
Note that $conectip is defined by socket_getpeername which will return the name (ip) of the
connecting host.
Regards
Chris W