Been trying to connect to vdrbox with php, some luck :(
Following works, in vdr log the connections opened and closed.
-----
$fp = fsockopen ("vdr.myhome.dom", 2001, &$errnro, &$errstr, 30);
if ($fp) {
fputs ($fp, "QUIT\n");
fclose($fp);
}
-----
Following just hangs there until timed out by vdr.
-----
$fp = fsockopen ("vdr.myhome.dom", 2001, &$errnro, &$errstr, 30);
if ($fp) {
fputs ($fp, "LSTC MTV\n\n");
while (!feof($fp)) {
$buf = fgets($fp, 1024);
echo $buf;
}
fputs ($fp, "QUIT\n");
fclose($fp);
}
-----
Any hints ?