> 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

Reply via email to