note 93995 deleted from function.socket-strerror by danbrown

From: Date: Sat, 10 Oct 2009 21:00:16 +0000
Subject: note 93995 deleted from function.socket-strerror by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161626@lists.php.net to get a copy of this message
Note Submitter: webmaster at askapache dot com ---- for($i=0, $s=""; $i<250; $s=socket_strerror($i), $i++) !empty($s) && ('Unknown error' != (substr($s,0,13)) ) && print "{$i} => '{$s}'\n"; /* ... 91 => 'Protocol wrong type for socket', 92 => 'Protocol not available', 93 => 'Protocol not supported', 94 => 'Socket type not supported', 95 => 'Operation not supported', 96 => 'Protocol family not supported', 97 => 'Address family not supported by protocol', 98 => 'Address already in use', 99 => 'Cannot assign requested address', 100 => 'Network is down', 101 => 'Network is unreachable', 102 => 'Network dropped connection on reset', 103 => 'Software caused connection abort', 104 => 'Connection reset by peer', 105 => 'No buffer space available', 106 => 'Transport endpoint is already connected', 107 => 'Transport endpoint is not connected', 108 => 'Cannot send after transport endpoint shutdown', 109 => 'Too many references: cannot splice', 110 => 'Connection timed out', 111 => 'Connection refused', 112 => 'Host is down' ... */ From: http://www.askapache.com/php/fsockopen-socket.html

« previous php.notes (#161626) next »