I want to bind a specified port to the CLIENT side of socket in PHP. Can I do this? How to do this?
Using socket_bind()? but I dont know what should be set for the address
I have googled the solution about this question but no example/solution can be found.
Thanks for helping.
Look here: http://php.net/manual/en/function.socket-bind.php
So something like:
Of course, I don’t know what the address of the host is, it might not be localhost.