I have an IpServer using Turbopowers IpServer library) and am able to connect and send data (fwrite() ), however, I cannot receive data from the server. The PutString() in the IpServer executes without error, however the fgets() just hangs.

Any ideas on what I may be doing incorrectly?

  $fp = fsockopen("192.168.0.21", "5389");
  if ($fp) {
echo "Socket has been opened: " . $fp . " " . date("m/d/y h:n:s", time()) . "<br>";
    fwrite($fp, "Please send me a report!");
    //echo fgets($fp) . "<br>";
    fclose($fp);
  } else {
    echo "Socket cannot open socket<br>";
  }


Many thanks.....
Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to