The php Function Stream_ResolveInclude_Path
PHP provides a wide array of functions for developers to use. These functions enable you to perform various tasks in a script, and are invaluable tools when it comes to writing efficient code. It's important to know how these function work, so you can avoid getting caught off guard if you ever need to use them on a live project.
Stream functions are a way of generalizing file, network and data compression operations that exhibit streamable behavior. A stream is a resource object that can be read from or written to in a linear fashion, and may also have associated wrappers to handle specific protocols/encodings.
A stream can be configured with a number of options, and these can be specified when it is created by calling stream_context_create(), or later using stream_context_set_option(). The exact set of options that can be configured is dependent on the type of wrapper in use. Once a stream has been configured, if it encounters an error it will report a message and/or severity to the caller.
The php function stream_resolve_include_path resolves a filename against an include path according to the same rules as fopen() and fopen_include(). It then returns the resolved absolute filename if successful, or false on failure.