RE: [PHP] Socket how to die if connection broken

From: Date: Mon, 08 Oct 2007 16:27:35 +0000
Subject: RE: [PHP] Socket how to die if connection broken
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-262915@lists.php.net to get a copy of this message
> But if the socket connection gets broken it creates an error msg > > Warning: socket_write(): unable to write to socket [32]: Broken pipe in > Warning: socket_write(): unable to write to socket [32]: Broken pipe in > Warning: socket_write(): unable to write to socket [32]: Broken pipe in > > That spills out for thousands and thousands of lines. > > What would I need for the script to die if the connection gets broken. It's just sitting around, gets broken, then outputs those errors? Do you check that it is a valid socket before you attempt a write? _________________________________________________________________ Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

« previous php.general (#262915) next »