PHP parses include_pathin order of priority. This means that when a relative path is passed in require(), include(), fopen(), file(), readfile()or file_get_contents(), PHP will start searching in the first directory. If the file is found, it includes it. If not, it will continue until the next and repeat the process.
Consider the following path:
include_path = ".:/php/includes:/php/pear"
PHP script:
<?php
require('MyFile.php');
PHP MyFile.php :
./MyFile.php ( )/php/includes/MyFile.php/php/pear/MyFile.php
, Validate.php, Validate.php (, Windows, UNIX) . PHP , PEAR::Validate, PEAR include_path.
- , Validate.php, . , get_include_path(), , .