Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17143 программиста и 1833 робота. Сейчас ищут 1712 программистов ...
Net_Portscan::getPort()
Вернуться к: Net_Portscan
Net_Portscan::getPort()
Net_Portscan::getPort() – port number of a service
Synopsis
require_once 'Net/Portscan.php';
integer Net_Portscan::getPort ( string $service , string $protocol = 'tcp' )
This function returns the port which corresponds to service for the specified protocol as per /etc/services.
Parameter
-
string $service - name of the service to check
-
string $protocol - access protocol
Return value
integer - port number of the service
Note
This function can be called statically.
The port number is retrieved from the machine where Net_Portscan is executed, not from the remote host, which you possibly used in Net_Portscan::checkPort().
Вернуться к: Net_Portscan