PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ini_get> <ini_alter
Last updated: Sun, 25 Nov 2007

view this page in

ini_get_all

(PHP 4 >= 4.2.0, PHP 5)

ini_get_all — 모든 설정 옵션을 얻습니다.

설명

array ini_get_all ([ string $extension ] )

등록된 모든 설정 옵션을 연관 배열로 반환합니다. 선택적인 extension 을 설정하면, 그 확장에 해당하는 옵션만을 반환합니다.

지시어 이름을 배열 키로, global_value(php.ini에서 설정), local_value(ini_set()이나 .htaccess로 설정), access(접근 레벨)를 배열 요소로 가지는 배열의 배열을 반환합니다. 접근 레벨에 대한 정보는 매뉴얼 섹션 설정 변경를 참고하십시오.

Note: 지시어가 복수의 접근 레벨을 가질 수 있기에, access는 적절한 비트마스트 값을 가집니다.

Example#1 A ini_get_all() 예제

<?php
$inis 
ini_get_all();

print_r($inis);

?>

부분적인 출력 예:

Array
(
    [allow_call_time_pass_reference] => Array
    (
        [global_value] => 1
        [local_value] => 1
        [access] => 6
    )
    [allow_url_fopen] => Array
    (
        [global_value] => 1
        [local_value] => 1
        [access] => 7
    )

    ...

)

참고: ini_get(), ini_restore(), ini_set(), get_loaded_extensions(), phpinfo().



add a note add a note User Contributed Notes
ini_get_all
root at mantoru dot de
21-Jan-2008 01:33
Since a certain PHP version (I think it's 5.2.5) it is no longer possible to override INI entrys set with php_admin_* in httpd.conf. The access level will be set to 4 (PHP_INI_SYSTEM), which is also returned by this function.

The constants mentioned below are available in PHP, but without the prefix (e.g. INI_USER, INI_PERDIR).
justd@ntmailme
20-Dec-2002 08:15
I guess the third entry is the required access level (to change this variable at runtime):

Constant           Value      Meaning
PHP_INI_USER      1          Entry can be set in user scripts
PHP_INI_PERDIR    2          Entry can be set in php.ini, .htaccess or httpd.conf 
PHP_INI_SYSTEM    4          Entry can be set in php.ini or httpd.conf 
PHP_INI_ALL       7          Entry can be set anywhere

See also the docs for ini_set()

Hugo.

ini_get> <ini_alter
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites