stream.contexts.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 42 行

HTML
42 行
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Stream Contexts</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="stream.filters.html">Stream Filters</a></div> <div class="next" style="text-align: right; float: right;"><a href="stream.errors.html">Stream Errors</a></div> <div class="up"><a href="book.stream.html">Streams</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Stream Contexts</h1> <p class="simpara">  A <i>context</i> is a set of <i>parameters</i> and   wrapper specific <i>options</i> which modify or enhance the  behavior of a stream.  <i>Contexts</i> are created using  <a href="function.stream-context-create.html" class="function">stream_context_create()</a> and can be passed to most  filesystem related stream creation functions (i.e. <a href="function.fopen.html" class="function">fopen()</a>,  <a href="function.file.html" class="function">file()</a>, <a href="function.file-get-contents.html" class="function">file_get_contents()</a>, etc...). </p> <p class="simpara">  <i>Options</i> can be specified when calling   <a href="function.stream-context-create.html" class="function">stream_context_create()</a>, or later using  <a href="function.stream-context-set-option.html" class="function">stream_context_set_option()</a>.  A list of wrapper specific <i>options</i> can be found in the  <a href="context.html" class="xref">Context options and parameters</a> chapter. </p> <p class="simpara">  <i>Parameters</i> can be specified for  <i>contexts</i> using the  <a href="function.stream-context-set-params.html" class="function">stream_context_set_params()</a> function. </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="stream.filters.html">Stream Filters</a></div> <div class="next" style="text-align: right; float: right;"><a href="stream.errors.html">Stream Errors</a></div> <div class="up"><a href="book.stream.html">Streams</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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