This function checks if there is a service available at the specified port on the specified machine.
string $host - address of the host to check
string $port - port to check
string $timeout - time in seconds to wait for response from host
Важно: If you run into timeout problems despite setting this parameter to a reasonably high value, you need to make sure that the configuration directive default_socket_timeout in the php.ini configuration file does not force the maximum timeout down to a lower value.
Пример 49-1. Using checkPort
|
Пред. | Начало | След. |
Net_Portscan | Уровень выше | Net_Portscan::checkPortRange() |
HIVE: All information for read only. Please respect copyright! |