<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.network.php',
    1 => '网络',
    2 => '网络',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => '其它服务',
  ),
  'prev' => 
  array (
    0 => 'function.mqseries-strerror.php',
    1 => 'mqseries_strerror',
  ),
  'next' => 
  array (
    0 => 'network.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/network/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.network.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.network" class="book">
 
 <h1 class="title">网络</h1>
 
 
 <div id="intro.network" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   提供一系列联网函数。
  </p>
 </div>
 
 
 







 




 










<ul class="chunklist chunklist_book"><li><a href="network.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="network.requirements.php">需求</a></li><li><a href="network.resources.php">资源类型</a></li></ul></li><li><a href="network.constants.php">预定义常量</a></li><li><a href="ref.network.php">网络 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.checkdnsrr.php">checkdnsrr</a> — 给指定的主机（域名）或者IP地址做DNS通信检查</li><li><a href="function.closelog.php">closelog</a> — 关闭系统日志链接</li><li><a href="function.dns-check-record.php">dns_check_record</a> — 别名 checkdnsrr</li><li><a href="function.dns-get-mx.php">dns_get_mx</a> — 别名 getmxrr</li><li><a href="function.dns-get-record.php">dns_get_record</a> — 获取指定主机名的 DNS 纪录</li><li><a href="function.fsockopen.php">fsockopen</a> — 打开 Internet 或者 Unix 套接字连接</li><li><a href="function.gethostbyaddr.php">gethostbyaddr</a> — 获取指定 IP 地址对应的 Internet 主机名</li><li><a href="function.gethostbyname.php">gethostbyname</a> — 返回主机名对应的 IPv4地址。</li><li><a href="function.gethostbynamel.php">gethostbynamel</a> — 获取互联网主机名对应的 IPv4 地址列表</li><li><a href="function.gethostname.php">gethostname</a> — 获取主机名</li><li><a href="function.getmxrr.php">getmxrr</a> — 获取 Internet 主机名对应的 MX 记录</li><li><a href="function.getprotobyname.php">getprotobyname</a> — Get protocol number associated with protocol name</li><li><a href="function.getprotobynumber.php">getprotobynumber</a> — Get protocol name associated with protocol number</li><li><a href="function.getservbyname.php">getservbyname</a> — 获取互联网服务协议对应的端口</li><li><a href="function.getservbyport.php">getservbyport</a> — Get Internet service which corresponds to port and protocol</li><li><a href="function.header.php">header</a> — 发送原生 HTTP 头</li><li><a href="function.header-register-callback.php">header_register_callback</a> — 调用一个 header 函数</li><li><a href="function.header-remove.php">header_remove</a> — 删除之前设置的 HTTP 头</li><li><a href="function.headers-list.php">headers_list</a> — 返回已发送的 HTTP 响应头（或准备发送的）</li><li><a href="function.headers-sent.php">headers_sent</a> — 检测消息头是否已经发送</li><li><a href="function.http-clear-last-response-headers.php">http_clear_last_response_headers</a> — Clears the stored HTTP response headers</li><li><a href="function.http-get-last-response-headers.php">http_get_last_response_headers</a> — Retrieve last HTTP response headers</li><li><a href="function.http-response-code.php">http_response_code</a> — 获取/设置响应的 HTTP 状态码</li><li><a href="function.inet-ntop.php">inet_ntop</a> — Converts a packed internet address to a human readable representation</li><li><a href="function.inet-pton.php">inet_pton</a> — Converts a human readable IP address to its packed in_addr representation</li><li><a href="function.ip2long.php">ip2long</a> — 将 IPV4 的字符串互联网协议转换成长整型数字</li><li><a href="function.long2ip.php">long2ip</a> — 将长整型转化为字符串形式带点的互联网标准格式地址（IPV4）</li><li><a href="function.net-get-interfaces.php">net_get_interfaces</a> — 获取网络接口</li><li><a href="function.openlog.php">openlog</a> — Open connection to system logger</li><li><a href="function.pfsockopen.php">pfsockopen</a> — 打开持久的 Internet 或 Unix 套接字连接</li><li><a href="function.request-parse-body.php">request_parse_body</a> — Read and parse the request body and return the result</li><li><a href="function.setcookie.php">setcookie</a> — 发送 Cookie</li><li><a href="function.setrawcookie.php">setrawcookie</a> — 发送未经 URL 编码的 cookie</li><li><a href="function.socket-get-status.php">socket_get_status</a> — 别名 stream_get_meta_data</li><li><a href="function.socket-set-blocking.php">socket_set_blocking</a> — 别名 stream_set_blocking</li><li><a href="function.socket-set-timeout.php">socket_set_timeout</a> — 别名 stream_set_timeout</li><li><a href="function.syslog.php">syslog</a> — Generate a system log message</li></ul></li></ul></div><?php manual_footer($setup); ?>