What role does the include_path setting in php.ini play in resolving include file paths?

The include_path setting in php.ini allows you to specify a list of directories where PHP will look for files when using include or require statements. This setting helps resolve include file paths by providing a list of directories to search through, making it easier to include files from different locations in your project.

// Example of setting the include_path in php.ini
// Add the following line to your php.ini file
// include_path = ".:/path/to/directory:/another/path"

// Example of using the include_path in PHP code
set_include_path(get_include_path() . PATH_SEPARATOR . '/path/to/directory');
// Now PHP will search for included files in the specified directory