Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sqlconn=mysql_connect("localhost","root","");
- mysql_query("use iptest");
- $sqlresult=mysql_query("select * from iptester");
- echo "<table>";
- while(list($id,$isim,$ip)=mysql_fetch_row($sqlresult)){
- exec("ping -n 1 -w 1000 $ip",$out,$ret);
- $resim=$ret ? "kapali.png" : "acik.png";
- echo "<tr><td>$id --- $isim --- $ip --- <img src=\"$resim\" /></td></tr>";
- }
- echo "<table>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement