{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Script Pengubah ppp0 | IP Speedy | Agar bisa Diakses Public
Script Pengubah ppp0 | IP Speedy | Agar bisa Diakses Public
- <?php
$pppcheck1 = exec(“ifconfig ppp0 | grep ‘addr:180′ | grep -v grep | awk ‘{ print $1}'”);
$pppcheck2 = exec(“ifconfig ppp0 | grep ‘addr:36′ | grep -v grep | awk ‘{ print $1}'”);
if($pppcheck1!=””||$pppcheck2!=””)
{
exec(“ifconfig ppp0 down; /etc/init.d/networking restart”);
}
else
{
echo(“Koneksi masih tersambung \n”);
echo(“”);
}
?>
Filed under: 7. Operating System