- Code: Select all
$command="ping -c 1 $host";
exec($command,$output);
if (strstr("bytes from",$output[0])){
echo "<img src =green.gif>";
}
else
echo "<img src =red.gif>";
will post the link from where it can be download.(updating servers now)
Moderators: macek, egami, gesf
$command="ping -c 1 $host";
exec($command,$output);
if (strstr("bytes from",$output[0])){
echo "<img src =green.gif>";
}
else
echo "<img src =red.gif>";

Return to PHP coding => Images
Users browsing this forum: No registered users and 2 guests