Articles Comments

{ 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

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>