Estes modos determinam quando e onde uma diretiva do PHP pode ou não pode ser definida, e cada diretiva no manual faz referência a um destes modos. Por exemplo, algumas definições podem ser feitas em um script PHP usando ini_set(), enquanto outras só podem ser feitas no php.ini ou httpd.conf.
Por exemplo, a configuração
output_buffering
é INI_PERDIR
portanto não pode ser definida usando
ini_set(). Entretanto a diretiva
display_errors é
INI_ALL
portanto pode ser definida em qualquer lugar
com ini_set().
Constantes | Descrição |
---|---|
INI_USER
(int)
|
Entry can be set in user scripts (like with ini_set()) or in the Windows registry. Entry can be set in .user.ini |
INI_PERDIR
(int)
|
Entry can be set in php.ini, .htaccess, httpd.conf or .user.ini |
INI_SYSTEM
(int)
|
Entry can be set in php.ini or httpd.conf |
INI_ALL
(int)
|
Entry can be set anywhere |