note 7695 deleted from function.get-cfg-var by danbrown

From: Date: Sat, 19 Jul 2008 23:52:27 +0000
Subject: note 7695 deleted from function.get-cfg-var by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141808@lists.php.net to get a copy of this message
Note Submitter: eric dot kidd at pobox dot com ---- 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

« previous php.notes (#141808) next »