krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: January 04 2015 at 08:30 | IP Logged
|
|
|
Hi all,
do any of you know about internet control station klikaanklikuit and if PH could be "taught"to communicate with this stuff?
By using a webbrowser you can control this system...
this stuff is being sold and widely available....
some more stuff found here....
Some PHP code found on this page as well:
Code:
<?php
$opdracht = $_GET["opdracht"];
$tekstregel1 = $_GET["tekstregel1"];
$tekstregel2 = $_GET["tekstregel2"];
if (!isset($opdracht)) die("Geen opdracht gegeven!");
$broadcast_string = "001,!" . $opdracht . "|". $tekstregel1 . "|" . $tekstregel2 . "|";
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
socket_set_option($sock, SOL_SOCKET, SO_BROADCAST, 1);
socket_sendto($sock, $broadcast_string, strlen($broadcast_string), 0, '255.255.255.255', 9760);
socket_close($sock);
|
|
|
Edited by krommetje - January 04 2015 at 08:37
|