PEAR_Config::writeConfigFile() – Write data into config layer from file


require_once 'PEAR/config.php';

bool PEAR_Config::writeConfigFile ( string $file = null , bool $layer = 'user' )


Writes data into a config layer from a file.


string $file

file to read from

boolean $layer

whether to overwrite existing data

Return value

bool - Returns TRUE on success, PEAR_Error on failure.


Possible PEAR_Error values
Error code Error value Meaning Solution


This function can not be called statically.

Determine whether any configuration files have been detected, and whether a registry object can be retrieved from this configuration. (Previous) PEAR_Dependency (Next)
Last updated: Thu, 08 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.