Stream/contexts-Phpdoc专题

Stream Contexts

A context is a set of parameters and wrapper specific options which modify or enhance the behavior of a stream. Contexts are created using stream_context_create and can be passed to most filesystem related stream creation functions (i.e. <span class="function">fopen, file, <span class="function">file_get_contents, etc...).

Options can be specified when calling <span class="function">stream_context_create, or later using <span class="function">stream_context_set_option. A list of wrapper specific options can be found in the 上下文(Context)选项和参数 chapter.

Parameters can be specified for contexts using the <span class="function">stream_context_set_params function.


本站为非盈利网站,作品由网友提供上传,如无意中有侵犯您的版权,请联系删除