Voting

: max(one, two)?
(Example: nine)

The Note You're Voting On

php50613160534 dot 3 dot korkman at spamgourmet dot org
19 years ago
Use 0 for port to bind a random (free) port for incoming connections:

socket_bind ($socket, $bind_address, 0);
socket_getsockname($socket, $socket_address, $socket_port);
socket_listen($socket);
...

$socket_port contains the assigned port, you might want to send it to a remote client connecting. Tested with php 5.03.

<< Back to user notes page

To Top