|
|
|
รบกวนผู้รู้ CODE PHP ตรวจสอบ ip server ว่า Offline ไหมให้แจ้งเตือนผ่าน Line Notify |
|
|
|
|
|
|
|
รบกวนผู้รู้ด้วยครับ
[glow=red]<?php
$ip = $_GET['ipserver1'];
$ipp = $_GET['ipserver2'];
$ippp = $_GET['ipserver3'];
?>
</div>
<div class="col col-sm-3" align="left">
Channel Ping : 1
<?php
exec("ping -n 2 " . $ip,$output, $result);
// print_r($output);
if ($result == 0){
echo "successful!","<tr> ";
}else{
echo "<h2>unsuccessful!</h2>","<tr /> ";
} ?>
</div>
<div class="col col-sm-3" align="center">
Channel Ping : 2
<?php
exec("ping -n 2 " . $ipp,$output, $result);
// print_r($output);
if ($result == 0){
echo "Ping successful!","<tr> ";
}else{
echo "Ping unsuccessful!","<tr /> ";
}
?>
</div>
<div class="col col-sm-3" align="rigth">
Channel Ping : 3
<?php
exec("ping -n 2 " . $ippp,$output, $result);
// print_r($output);
if ($result == 0){
echo "Ping successful!","<tr> ";
}else{
echo "Ping unsuccessful!","<tr /> ";
}
?>[/glow]
Tag : PHP, MySQL, HTML5, JavaScript, XAMPP, Windows
|
|
|
|
|
|
Date :
2020-01-21 13:49:29 |
By :
Skullsheepz |
View :
974 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
สมัครสิครับ มันมีคู่มือ api ให้อยู่แล้ว
Line Notify
|
|
|
|
|
Date :
2020-01-22 00:57:58 |
By :
mongkon.k |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|