Parameter | Description |
---|---|
filename | The filename being read. |
use_include_path | You can use the optional second parameter and set it to TRUE, if you want to search for the file in the include_path, too. |
context | A context stream resource. |
Most filenames passed to functions in this topic are:
SplFileInfo
, which is the value in the iteration of DirectoryIterator
.scheme://
to specify the protocol wrapper to manage with. For example, file_get_contents("http://example.com")
retrieves content from http://example.com.DIRECTORY_SEPARATOR
on Windows is a backslash, and the system returns backslashes for paths by default, the developer can still use /
as the directory separator. Therefore, for compatibility, developers can use /
as directory separators on all systems, but be aware that the values returned by the functions (e.g. realpath
) may contain backslashes.