note 17536 deleted from function.ini-get by jimw
| From: | jimw@php.net | Date: | Mon, 17 Dec 2001 22:12:29 +0000 |
| Subject: | note 17536 deleted from function.ini-get by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23004@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.