Net_Portscan::getService()

Net_Portscan::getService() -- name of the service

Synopsis

require_once 'Net/Portscan.php';

string Net_Portscan::checkPortRange (integer $port [, string $protocol = 'tcp'])

Description

This function returns the service associated with port for the specified protocol as per '/etc/services'.

Parameter

Return value

string - name of service running on the port

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().