PEAR_Config::writeConfigFile()

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

Synopsis

require_once 'PEAR/config.php';

bool PEAR_Config::writeConfigFile ([string $file = NULL [, bool $layer = 'user']])

Description

Writes data into a config layer from a file.

Parameter

string $file

file to read from

boolean $layer

whether to overwrite existing data

Return value

bool - Returns TRUE on success, PEAR_Error on failure.

Throws

Table 27-1. Possible PEAR_Error values

Error codeError valueMeaningSolution
 ""  

Note

This function can not be called statically.