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

Beschreibung

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

Parameter

Rückgabewert

boolean - Gibt bei Erfolg TRUE zurück, bei einem Fehler FALSE.

Hinweise

Diese Methode kann statisch aufgerufen werden.

Beispiel