[vdr] SVDRP with PHP

Lauri Tischler lwgt at iki.fi
Thu Jul 21 17:59:11 CEST 2005


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 ?



More information about the vdr mailing list