Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : PHP Options&Information : ini_get_all

ini_get_all

Gets all configuration options (PHP 4 >= 4.2.0, PHP 5)
array ini_get_all ( [string extension] )

Example 1844. A ini_get_all() example

<?php
$inis
= ini_get_all();

print_r($inis);

?>

The above example will output something similar to:

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
   )

   ...

)

Code Examples / Notes » ini_get_all

justd@ntmailme

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.


Change Language


Follow Navioo On Twitter
assert_options
assert
dl
extension_loaded
get_cfg_var
get_current_user
get_defined_constants
get_extension_funcs
get_include_path
get_included_files
get_loaded_extensions
get_magic_quotes_gpc
get_magic_quotes_runtime
get_required_files
getenv
getlastmod
getmygid
getmyinode
getmypid
getmyuid
getopt
getrusage
ini_alter
ini_get_all
ini_get
ini_restore
ini_set
main
memory_get_peak_usage
memory_get_usage
php_ini_scanned_files
php_logo_guid
php_sapi_name
php_uname
phpcredits
phpinfo
phpversion
putenv
restore_include_path
set_include_path
set_magic_quotes_runtime
set_time_limit
sys_get_temp_dir
version_compare
zend_logo_guid
zend_thread_id
zend_version
eXTReMe Tracker