PHP 提供了各種上下文選項和參數,可用於所有檔案系統和串流包裝器。上下文是使用 stream_context_create() 建立的。選項使用 stream_context_set_option() 設定,參數使用 stream_context_set_params() 設定。