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'])

Description

This function returns the port which corresponds to service for the specified protocol as per /etc/services.

Parameter

Return value

integer - port number of the service

Note

This function can be called statically

The information is taken from your host, not from the remote host you maybe checked with Net_Portscan::checkPort().