berikut ini codengan .
<?php
$server = "192.9.120.108";
$port = "80";
$timeout = "10";
if ($server and $port and $timeout) {
$verbinding = @fsockopen("$server", $port, $errno, $errstr, $timeout);
}
if($verbinding) {
echo "open";
}
else {
echo "close";
}
?>
$server = "192.9.120.108";
$port = "80";
$timeout = "10";
if ($server and $port and $timeout) {
$verbinding = @fsockopen("$server", $port, $errno, $errstr, $timeout);
}
if($verbinding) {
echo "open";
}
else {
echo "close";
}
?>
No comments:
Post a Comment