Net_Portscan::checkPort()

Net_Portscan::checkPort() -- check for available service

Synopsis

require_once 'Net/Portscan.php';

boolean Net_Portscan::checkPort (string $host, integer $port [, integer $timeout = 30])

Description

This function checks if there is a service available at the specified port on the specified machine.

Parameter

Return value

boolean - Returns TRUE on success, FALSE on failure.

Note

This function can be called statically.

Example