note 27419 added to function.get-cfg-var
| From: | verdana@php.net | Date: | Thu, 05 Dec 2002 04:16:02 +0000 |
| Subject: | note 27419 added to function.get-cfg-var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40370@lists.php.net to get a copy of this message | ||
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'));
--
http://www.php.net/manual/en/function.get-cfg-var.php
http://master.php.net/manage/user-notes.php?action=edit+27419
http://master.php.net/manage/user-notes.php?action=delete+27419
http://master.php.net/manage/user-notes.php?action=reject+27419