|
PHP5中文手册
stream_context_get_default(PHP 5 >= 5.1.0) stream_context_get_default — Retreive the default streams context Description
resource stream_context_get_default
([ array $options
] )
Returns the default stream context which is used whenever file operations (fopen(), file_get_contents(), etc...) are called without a context parameter. Options for the default context can optionally be specified with this function using the same syntax as stream_context_create(). options must be an associative array of associative arrays in the format $arr['wrapper']['option'] = $value. Example#1 Using stream_context_get_default()
<?php See also stream_context_create(), and Listing of supported wrappers with context options (支持的协议/封装协议列表). |