note 88451 added to function.fwrite

From: Date: Sun, 25 Jan 2009 01:56:18 +0000
Subject: note 88451 added to function.fwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-149741@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 71.165.36.228 ---- Manual Page -- http://www.php.net/manual/en/function.fwrite.php Edit -- https://master.php.net/note/edit/88451 Del: integrated -- https://master.php.net/note/delete/88451/integrated Del: useless -- https://master.php.net/note/delete/88451/useless Del: bad code -- https://master.php.net/note/delete/88451/bad+code Del: spam -- https://master.php.net/note/delete/88451/spam Del: non-english -- https://master.php.net/note/delete/88451/non-english Del: in docs -- https://master.php.net/note/delete/88451/in+docs Del: other reasons-- https://master.php.net/note/delete/88451 Reject -- https://master.php.net/note/reject/88451 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149741) next »