Diverting the Stream
ONE OFTEN UNDERSOLD PHP FEATURE is the stream context. These optional argumentsavailable even from userspace on most stream creationrelated functionsserve as a generalized framework for passing additional information into or out of a given wrapper or stream implementation.