note 7695 modified in get_cfg_var by hholzgra
| From: | hholzgra@php.net | Date: | Tue, 29 Aug 2000 14:09:22 +0000 |
| Subject: | note 7695 modified in get_cfg_var by hholzgra | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3587@lists.php.net to get a copy of this message | ||
As implemented, this function is an odd wart--it calls cfg_get_string, which returns the value
originally set in the config file, if any.
Unfortunately, you almost never want to know the original value in the config file. Instead, you
want to know the value currently in effect. (These two values can be different if you have no
php.ini file, or if you're setting options in httpd.conf or .htaccess files.)
To get the current value of a configuration option you should use ini_get() instead
http://www.php.net/manual/function.get-cfg-var.php