RE: Ping!
| From: | Emanuel Harangus | Date: | Fri, 06 Oct 2000 09:01:23 +0000 |
| Subject: | RE: Ping! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2986@lists.php.net to get a copy of this message | ||
<?php
$host="192.168.220.108";
$port=139;
$s=fsockopen($host,$port);
if(!$s){
echo "$host is NOT online.<BR>";
}else{
echo "$host is online.<BR>";
}
@fclose($s);
?>
This should work. It works for me [Win2k, Apache 1.3.12, PHP 4.0.2-dev].
Rygars