Its not checking Port for RDP = 3389 , for ftp yes , web yes , telnet yes can anyone tell me why its not working just for RDP port 3389
if($type == "rdp") {
$sql = mysql_query("select * from stuff where stuff_id = '$id'");
$rows = mysql_fetch_assoc($sql);
$server = trim($rows['addinfo']);
$host = "RDP IP";
$port = "3389";
$timeout = 2;
$tbegin = microtime(true);
$fp = fsockopen($host, $port, $errno, $errstr, $timeout);
$responding = 1;
if (!$fp) { $responding = 0; }
$tend = microtime(true);
fclose($fp);
$mstime = ($tend - $tbegin) * 1000;
$mstime = round($mstime, 2);
if($responding)
{
echo "<a href='#' class='btn btn-success'>Connected</a>";
}
else
{
echo "<a href='#' class='btn btn-danger'>Checker Fail !</a>";
}
似乎脚本正在尝试连接到“ RDP IP”,而不是使用服务器变量。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.