note 17536 added to function.ini-get

From: Date: Thu, 13 Dec 2001 10:56:28 +0000
Subject: note 17536 added to function.ini-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-22574@lists.php.net to get a copy of this message
(PHP4.1.0 and below) The manual forgot to mention the function get_cfg_var() at this place. *NOT* all variables out of the php.ini file can be fetched with ini_get(). E.g. ini_get('memory_limit') will just return an empty string (See note at end). You must use get_cfg_var('memory_limit') I think the difference is that 'cofiguration vars' can only be read (not set). So to read them you must use the get_cfg_var() function. NOTE: ini_get('any string that is not in php.ini') returns an empty string and *NOT* FALSE as I would have expected. -- http://www.php.net/manual/en/function.ini-get.php http://master.php.net/manage/user-notes.php?action=edit+17536 http://master.php.net/manage/user-notes.php?action=delete+17536 http://master.php.net/manage/user-notes.php?action=reject+17536

« previous php.notes (#22574) next »