PEAR_Config::readConfigFile()

PEAR_Config::readConfigFile() -- Reads configuration data from a file

Referentiesamenvatting

require_once 'PEAR/config.php';

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

Beschrijving

Reads configuration data from a file. All existing values in the config layer are discarded and replaced with data from the file.

Parameter

string $file

file to read from, if NULL or not specified, the last-used file for the same layer (second param) is used

string $layer

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

Return waarde

bool - Geeft TRUE terug bij success, PEAR_Error als het faalt.

Throws

Tabel 28-1. Mogelijke PEAR_Error waarden

Error codeError valueMeaningSolution
 ""  

Note

Deze functie kan niet statisch worden aangeroepen.