PEAR_Config::mergeConfigFile()

PEAR_Config::mergeConfigFile() -- Merges data into a config layer from a file

Synopsis

require_once 'PEAR/config.php';

bool PEAR_Config::mergeConfigFile (string $file [, bool $override = TRUE [, string $layer = 'user']])

Beschreibung

Merges data into a config layer from a file. Does the same thing as readConfigFile(), except it does not replace all existing values in the config layer.

Parameter

string $file

file to read from

boolean $override

whether to overwrite existing data

string $layer

config layer to insert data into ('user' or 'system')

Rückgabewert

bool - Gibt bei Erfolg TRUE zurück, bei einem Fehler ein Objekt der Klasse PEAR_Error.

Fehler-Meldungen

Tabelle 28-1. Mögliche Fehler-Arten

Error codeError valueMeaningSolution
 „“  

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.