PEAR_Config::readConfigFile()

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

概要

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.

パラメータ

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')

返り値

bool - 成功時には TRUE、 失敗時には PEAR_Error を返します。

例外・エラー

表 27-1PEAR_Error の値

Error codeError valueMeaningSolution
 ""  

注意

この関数は、スタティックにコールする ことはできません。