Base de conhecimento

1000 perguntas frequentes, 500 tutoriais e vídeos explicativos. Aqui, você encontra apenas soluções!

Modify the include_path

This guide explains how to modify the value of the PHP directive include_path.

 

Modify the include_path

Like any other PHP setting, include_path is defined in the .user.ini file.

Here is an example of a path to use in your .user.ini file:

  • The dot (.) at the beginning allows the current directory to be included in the search.
  • Le point (.) au début permet de conserver le répertoire courant dans la recherche.
  • The colon (:) is used as a separator between the different folders.

Refer to this other guide about phpinfo to verify that your new directive has been taken into account (it may take a few minutes for the change to appear).

Although this method is still functional, using Composer's autoloader is now the preferred solution for managing includes.


Esta seção de perguntas frequentes foi útil?