note 88451 deleted from function.fwrite by danbrown

From: Date: Sun, 25 Jan 2009 03:06:43 +0000
Subject: note 88451 deleted from function.fwrite by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149742@lists.php.net to get a copy of this message
Note Submitter: dave8 at isisbio dot com ---- When using fsockopen and fwrite/fputs on a stream I want to write, I found that if the server at the other end disconnected the socket, the fwrite or fputs returned 0, not false. If you implement a suggestion below that anticipates partial writes, you'll be stuck in a loop because it will always return 0 until the socket is reopened.

« previous php.notes (#149742) next »