note that any unrecognized protocol defaults to file://
so, for example:
adkfjaldfjaldf://foo
is the same as
file://foo
file:// — Accessing local filesystem
Filesystem is the default wrapper used with PHP and represents the local filesystem. When a relative path is specified (a path which does not begin with /, \, \\, or a Windows drive letter) the path provided will be applied against the current working directory. In many cases this is the directory in which the script resides unless it has been changed. Using the CLI sapi, this defaults to the directory from which the script was called.
With some functions, such as fopen() and file_get_contents(), include_path may be optionally searched for relative paths as well.
버전 | 설명 |
---|---|
5.0.0 | Added file://. |
note that any unrecognized protocol defaults to file://
so, for example:
adkfjaldfjaldf://foo
is the same as
file://foo