I change this code and I put this:

Code:
IP: 10.110.206.123 (
<?php
$ping_ex = exec("ping -n 1 10.140.206.123", $ping_result, $pr);
if (count($ping_result) > 1){
echo "<img src=\"on.png\">";
} else{
echo "<img src=\"off.png\">";
}
?> )


IP: 127.0.0.1 (
<?php
$ping_ex = exec("ping -n 1 127.0.0.1", $ping_result, $pr);
if (count($ping_result) > 1){
echo "<img src=\"on.png\">";
} else{
echo "<img src=\"off.png\">";
}
?> )
In the first case the resulst are NO and the second case are YES.
But... the result is YES in two cases. Why???

Last edited by guif; 8Oct2008 at 18:50..