Just thought I would add.
Very simple way of parsing data such as post_max_size
eregi_replace('[gmk]','',ini_get('post_max_size'));
![]() | ini_getDescriptionstring ini_get ( string varname )Returns the value of the configuration option on success. Failure, such as querying for a non-existent value, will return an empty string.
See also get_cfg_var(), ini_get_all(), ini_restore(), and ini_set(). ![]()
Webmaster at GrimChild dot com
20-May-2006 02:34
Just thought I would add.
filh at filh dot org
21-Nov-2005 10:24
Concerning the value retourned, it depends on how you set it.
09-Nov-2005 05:56
@marcus at synchromedia dot co dot uk
marcus at synchromedia dot co dot uk
05-Nov-2005 05:21
The last comment about setting values in .htaccess is not right. These lines both result in display_errors being turned off:
01-Nov-2005 03:16
Important: The manual says that ini_get will return 0 or an empty string for boolean config values that are set to off in php.ini.
david dot tulloh at infaze dot com dot au
22-Jun-2005 10:01
You can set custom entries in the ini file to provide globals such as database details.
Der Graph
17-Aug-2004 02:59
It might be useful for included scripts that include other files to extend the 'include_path' variable:
fbeyer at <nospam>clickhand dot de
13-Aug-2002 10:29
If you want to test ini flags (eg. On/Off), I recommend to explicitly cast the value returned by ini_get() to boolean - it is cleaner as you only get true or false, not 0 or 1 or "" as described above. | ![]() |