Interacting with an IpServer via sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux