This is what I have so far..
<?php
$host = "127.0.0.1";
$port = 1234;
$fp = fsockopen ($host, $port, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
}
else {
fputs ($fp, "USERNAME,PASSWORD\n");
$rs = fgets($fp,1024); echo $rs;
fputs ($fp, "DEVICES\n");
$rs = fgets($fp,1024); echo $rs;
}
?>
I login with username and password and this works fine.
I send Devices and I'm returned one line.
If I do this on a telnet session I get 4 - 8 lines depending on the unit I'm connected to.
How do I get all the data back using php ??
Thanks