Net_Portscan::checkPort()

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

Referentiesamenvatting

require_once 'Net/Portscan.php';

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

Beschrijving

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

Parameter

Return waarde

boolean - Geeft TRUE terug bij success, FALSE bij een fout.

Note

Deze functie kan statisch worden aangeroepen.

Voorbeeld