note 32132 deleted from function.socket-bind by aidan
| From: | aidan@php.net | Date: | Thu, 24 Feb 2005 07:18:39 +0000 |
| Subject: | note 32132 deleted from function.socket-bind by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85464@lists.php.net to get a copy of this message | ||
Note Submitter: siron [nospam] at siron [nospam] dot org
----
to add to that note, you can also use 0.0.0.0
ie:
if (!socket_bind($socket, "0.0.0.0", PORT)) {
socket_close($socket);
die("Sock_Error: Socket was unable to bind.\n");
}
where port is defined above, define('PORT', 6667);