WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Get a value from an INI file
This function reads a configuration key value from an INI file. If the section and key are not found, the default value is returned.
$filename: Full path and name of the INI file
$section: Name of the section inside the INI file
$key: Name of the key inside the section
$default: Value to be returned if the section and key are not found
Mixed: Value associated with the key, or the default value if the section and key are not found
The value will be of type string, integer or float depending on the data type of the key value (or the data type of the default value if the section or key is not found).
<? $val=ini_get("/config/network.ini","network","netmask","255.255.255.0"); print($val); ?>
ini_get_array() - Get a group of parameters from an INI file as an array
ini_put_array() - Write a group of parameters to an INI file from an array
ini_set() - Set a value in an INI file