E
E
evil0o2015-10-17 17:47:31
PHP
evil0o, 2015-10-17 17:47:31

How to specify address in socket_bind, not ip?

On the server side (php), ip and port are written in socket_bind(),
but how to write the address test.ru/socketTest

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-10-17
Protko @Fesor

hmm... read about URIs, sockets, and what socket_bind does. Then the question will disappear by itself.

A
Alexey Skobkin, 2015-10-17
@skobkin

First, IP is an address.
Secondly, what you call an address is a hostname (hostname). It is converted to IP through DNS . So the software that opens the socket can find out about the hostname that was accessed, unless the protocol implies it (this happens in HTTP).
And listen to Sergey Protko - read what is what.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question