mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Clarify include path details, based on official doc
This commit is contained in:
parent
16293c0944
commit
ff978cc747
@ -395,9 +395,9 @@ return 'Anything you like.';
|
||||
// Contents of main-file.php:
|
||||
$value = include 'my-include.php'; // Includes and requires may also return a value.
|
||||
|
||||
// Include paths are relative to the current working directory of the executed file (e.g. front controller).
|
||||
// If an included file from another directory includes another file, the path will not be relative
|
||||
// to the current file from which the include is called.
|
||||
// Files are included based on the file path given or, if none is given, the include_path
|
||||
// configuration directive. If the file isn't found in the include_path, include will finally check
|
||||
// in the calling script's own directory and the current working directory before failing.
|
||||
|
||||
|
||||
/********************************
|
||||
|
Loading…
Reference in New Issue
Block a user