PEAR_Config::noRegistry | PEAR_Config::readFTPConfigFile |
PEAR_Config | |
PEAR Manual | |
require_once 'PEAR/config.php'; |
bool PEAR_Config::readConfigFile (
string $file = NULL
, string $layer = 'user'
)
Reads configuration data from a file. All existing values in the config layer are discarded and replaced with data from the file.
file to read from, if NULL or not specified, the last-used file for the same layer (second param) is used
config layer to insert data into ('user' or 'system' )
bool - Returns TRUE on success, PEAR_Error on failure.
Error code | Error value | Meaning | Solution |
" |
This function can not be called statically.
PEAR_Config::noRegistry | PEAR_Config::readFTPConfigFile |
PEAR_Config | |
PEAR Manual | |