LAN DS18B20 WEB Temperature Monitor 1 meter Cable
www.WEB-Relays.com
www.Facebook.com/KMtronic

Ping site and return result in PHP for my Home Automation

<?php function pingAddress($ip, $ipname){ $pingresult = shell_exec(“ping -c 1 $ip”); $dead = “1 received”; $deadoralive = strpos($pingresult, $dead ); echo $ipname; echo “<br>”; if ($deadoralive){ echo ” IP address $ip is ONLINE”; echo “<br>”; echo $pingresult; echo “<br>”; } else { echo ” —— IP address $ip is dead ——“; } } echo “<br><br><br>”; $ip . . .

Read More

KMtronic LAN WEB 8 Channel Relay board