note 69390 modified in function.get-cfg-var by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Jul 2008 23:48:43 +0000 |
| Subject: | note 69390 modified in function.get-cfg-var by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141804@lists.php.net to get a copy of this message | ||
get_cfg_var returns the value from php.ini directly,while the ini_get returns the runtime config
value. I have tried it on PHP 5.1.6
[EDIT by danbrown AT php DOT net: The author of this note means that ini_get() will return values
set by ini_set(), .htaccess, a local php.ini file, and other functions at runtime. Conversely,
get_cfg_var() will return strictly the server php.ini.]
--was--
get_cfg_var returns the value from php.ini directly,while the ini_get returns the runtime config
value. I have tried it on PHP 5.1.6
http://php.net/manual/en/function.get-cfg-var.php