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
| Error code | Error value | Meaning | Solution |
|---|---|---|---|
| " |
Note
This function can not be called statically.