note 10717 added to Socket functions

From: Date: Thu, 18 Jan 2001 19:30:45 +0000
Subject: note 10717 added to Socket functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-9937@lists.php.net to get a copy of this message
Using sockets for communication between Unix web server and com object sitting on Win 2000 machine. I'm noticing some problems with the client side. Basically, I'm using "write($socket, $writestr, (strlen ($writestr))" to write a command to the socket server (written in Perl), then using "read($socket, $sockstring, 2048)" to read the response. 99 out of 100 times, this works fine. However, occasionally, my read returns nothing even though the server has returned a response. Any idea why this is happening? http://www.php.net/manual/en/ref.sockets.php

« previous php.notes (#9937) next »