To use PHP-related items from outside your project content root, you need to have them stored under the PHP home directory and specify the relative paths to them. The specified include paths will be used:
- By the require(), include(), fopen(), file(), readfile(), and file_get_contents() functions when looking for files to use.
- By PhpStorm when resolving references to included files.
- Open the project settings and click PHP.
- In the PHP page that opens, click the Update include paths button.
In the Include paths area, that becomes available upon pressing the
Update include paths button,
configure the list of include paths.
- To add a path to the list, click the Add button and select the required directory in the dialog box, that opens.
- To remove a path from the list, select the required item and click the Remove button.