⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sockets.errors.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Socket Errors</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sockets.examples.html">Examples</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.sockets.html">Socket Functions</a></div> <div class="up"><a href="book.sockets.html">Sockets</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Socket Errors</h1> <p class="para">  The socket extension was written to provide a usable interface to the  powerful BSD sockets. Care has been taken that the functions work equally  well on Win32 and Unix implementations. Almost all of the sockets  functions may fail under certain conditions and therefore emit an  <b><tt>E_WARNING</tt></b> message describing the error. Sometimes this  doesn&#039;t happen to the desire of the developer. For example the function  <a href="function.socket-read.html" class="function">socket_read()</a> may suddenly emit an  <b><tt>E_WARNING</tt></b> message because the connection broke  unexpectedly. It&#039;s common to suppress the warning with the  <i>@</i>-operator and catch the error code within the  application with the <a href="function.socket-last-error.html" class="function">socket_last_error()</a> function. You  may call the <a href="function.socket-strerror.html" class="function">socket_strerror()</a> function with this error  code to retrieve a string describing the error. See their description for  more information. </p> <blockquote><p><b class="note">Note</b>:      The <b><tt>E_WARNING</tt></b> messages generated by the socket   extension are in English though the retrieved error message will appear   depending on the current locale (<b><tt>LC_MESSAGES</tt></b>):   <div class="example-contents"><div class="phpcode"><code><span style="color: #000000">Warning&nbsp;-&nbsp;socket_bind()&nbsp;unable&nbsp;to&nbsp;bind&nbsp;address&nbsp;[98]:&nbsp;Die&nbsp;Adresse&nbsp;wird&nbsp;bereits&nbsp;verwendet</span></code></div>   </div>  <br /> </p></blockquote></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sockets.examples.html">Examples</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.sockets.html">Socket Functions</a></div> <div class="up"><a href="book.sockets.html">Sockets</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -