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

From: Date: Sat, 19 Jul 2008 23:52:03 +0000
Subject: note 27419 deleted from function.get-cfg-var by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141806@lists.php.net to get a copy of this message
Note Submitter: verdana at php dot net ---- ini_get() return the current value of the configuration option. But the get_cfg_var() always get the value from config file, php.ini. This is the test code: ini_set('sendmail_from', 'verdana@263.net'); echo '<br /> <br />'; echo '<br /> Current Value:'; var_dump(ini_get('sendmail_from')); echo '<br /> Value in cfg file:'; var_dump(get_cfg_var('sendmail_from'));

« previous php.notes (#141806) next »