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

Receive UDP packet datagrams in PHP ( UDP server socket)

  PHP file: <?php $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);if (!$socket) { die(“socket_create failed.n”); }   //Set socket options.socket_set_nonblock($socket);socket_set_option($socket, SOL_SOCKET, SO_BROADCAST, 1);socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1); if (defined(‘SO_REUSEPORT’))socket_set_option($socket, SOL_SOCKET, SO_REUSEPORT, 1); //Bind to any address & port 12345.if(!socket_bind($socket, ‘0.0.0.0’, 12345))    die(“socket_bind failed.n”);   //Wait for data.$read = array($socket); $write = NULL; $except = NULL; while(socket_select($read, $write, . . .

Read More …

KMtronic LAN WEB 8 Channel Relay board