ini_set

(FW >= 1.0)

ini_set - set a value in an INI file

Description

mixed ini_set(string filename, string section, string key, mixed value)
Write a configuration key/value pair to an INI file.

Parameters

$filename

full path and filename of ini file.

section

section inside ini file

key

key to write

value

the value to be written.  This can be a float, int, or string

Return Value

none

Examples

<? 

ini_set("/config/my_config.ini","general","enabled",1);
/* INI file will contain this:
[general]
enabled=1
*/
?>