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

📄 wrappers.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>List of Supported Protocols/Wrappers</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="resource.html">List of Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="wrappers.http.html">HTTP and HTTPS</a></div> <div class="up"><a href="appendices.html">Appendices</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>List of Supported Protocols/Wrappers</h1><h2>Table of Contents</h2><ul class="chunklist chunklist_appendix"><li><a href="wrappers.http.html">HTTP and HTTPS</a></li><li><a href="wrappers.ftp.html">FTP and FTPS</a></li><li><a href="wrappers.php.html">PHP input/output streams</a></li><li><a href="wrappers.compression.html">Compression Streams</a></li><li><a href="wrappers.data.html">Data (RFC 2397)</a></li><li><a href="wrappers.glob.html">Glob</a></li><li><a href="wrappers.ssh2.html">Secure Shell 2</a></li><li><a href="wrappers.audio.html">Audio Streams</a></li><li><a href="wrappers.expect.html">Process Interaction Streams</a></li></ul> <p class="para">  The following is a list of the various URL style protocols that  PHP has built-in for use with the filesystem functions such as  <a href="function.fopen.html" class="function">fopen()</a> and <a href="function.copy.html" class="function">copy()</a>.  In addition to these wrappers, as of PHP 4.3.0, you can write  your own wrappers using PHP script and  <a href="function.stream-wrapper-register.html" class="function">stream_wrapper_register()</a>. </p> <p class="para">  List of context options is available in the chapter <a href="context.html" class="xref">Context options and parameters</a>. </p> <div id="wrappers.file" class="section">  <h2 class="title">Filesystem</h2>  <p class="simpara">All versions of PHP. Explicitly using <var class="filename">file://</var> since PHP 5.0.0.</p>  <ul class="itemizedlist">   <li class="listitem"><span class="simpara"><var class="filename">/path/to/file.ext</var></span></li>   <li class="listitem"><span class="simpara"><var class="filename">relative/path/to/file.ext</var></span></li>   <li class="listitem"><span class="simpara"><var class="filename">fileInCwd.ext</var></span></li>   <li class="listitem"><span class="simpara"><var class="filename">C:/path/to/winfile.ext</var></span></li>   <li class="listitem"><span class="simpara"><var class="filename">C:\path\to\winfile.ext</var></span></li>   <li class="listitem"><span class="simpara"><var class="filename">\\smbserver\share\path\to\winfile.ext</var></span></li>   <li class="listitem"><span class="simpara"><var class="filename">file:///path/to/file.ext</var></span></li>  </ul>  <p class="simpara">   <em class="emphasis">Filesystem</em> is the default wrapper used with PHP and represents the local filesystem.   When a relative path is specified (a path which does not begin with /, \, \\, or a Windows drive letter)   the path provided will be applied against the current working directory.  In many cases this is the   directory in which the script resides unless it has been changed.  Using the CLI sapi, this defaults   to the directory from which the script was called.  </p>  <p class="simpara">   With some functions, such as <a href="function.fopen.html" class="function">fopen()</a> and <a href="function.file-get-contents.html" class="function">file_get_contents()</a>,   <i>include_path</i> may be optionally searched for relative paths as well.  </p>  <p class="para">   <table border="5">    <caption><b>Wrapper Summary</b></caption>    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">Attribute</th>       <th colspan="1">Supported</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Restricted by <a href="filesystem.configuration.html#ini.allow-url-fopen" class="link">allow_url_fopen</a></td>       <td colspan="1" rowspan="1" align="left">No</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Allows Reading</td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Allows Writing</td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Allows Appending</td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Allows Simultaneous Reading and Writing</td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Supports <a href="function.stat.html" class="function">stat()</a></td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Supports <a href="function.unlink.html" class="function">unlink()</a></td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Supports <a href="function.rename.html" class="function">rename()</a></td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Supports <a href="function.mkdir.html" class="function">mkdir()</a></td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Supports <a href="function.rmdir.html" class="function">rmdir()</a></td>       <td colspan="1" rowspan="1" align="left">Yes</td>      </tr>     </tbody>    </colgroup>   </table>  </p> </div>         </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="resource.html">List of Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="wrappers.http.html">HTTP and HTTPS</a></div> <div class="up"><a href="appendices.html">Appendices</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 + -