mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Clarify relative path names for includes
This commit is contained in:
parent
e43bee7183
commit
16293c0944
@ -395,6 +395,10 @@ 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.
|
||||
|
||||
|
||||
/********************************
|
||||
* Classes
|
||||
|
Loading…
Reference in New Issue
Block a user