Advertisement
Guest User

u-s

a guest
Jun 26th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. $sqlconn=mysql_connect("localhost","root","");
  2. mysql_query("use iptest");
  3. $sqlresult=mysql_query("select * from iptester");
  4. echo "<table>";
  5. while(list($id,$isim,$ip)=mysql_fetch_row($sqlresult)){
  6.     exec("ping -n 1 -w 1000 $ip",$out,$ret);
  7.     $resim=$ret ? "kapali.png" : "acik.png";
  8.     echo "<tr><td>$id --- $isim --- $ip --- <img src=\"$resim\" /></td></tr>";
  9. }
  10. echo "<table>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement