stream_context_set_default

stream_context_set_default

(PHP 5 >= 5.3.0, PHP 7)

stream_context_set_defaultSet the default stream context

Description

resource stream_context_set_default ( array $options )

Set the default stream context which will be used whenever file operations (fopen(), file_get_contents(), etc...) are called without a context parameter. Uses the same syntax as 登录查看完整内容