0
Son pas de contrôle du port pour la RDP = 3389, pour ftp oui, web oui, telnet oui quelqu'un peut me dire pourquoi son travail non seulement pour le port RDP 3389fsockopen contrôle PHP port ouvert pour la RDP ne fonctionne pas
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>";
}
Assurez-vous que le port est ouvert. – Jer
100% le port est ouvert – JoeFixer