function load_file($file_name, $prepend_path = true)
	{
		if ($prepend_path && $this->_config_path != "")
		$config_file = $this->_config_path . $file_name;
		else
		$config_file = $file_name;

		ini_set('track_errors', true);
		$fp = @fopen($config_file, "r");
		if (!is_resource($fp)) {
			$this->_trigger_error_msg("Could not open config file '$config_file'");
			return false;
		}

		$contents = ($size = filesize($config_file)) ? fread($fp, $size) : '';
		fclose($fp);

		$this->_config_data[$config_file] = $this->parse_contents($contents);
		return true;
	}
function load_file($file_name, $prepend_path = true)
	{
		if ($prepend_path && $this->_config_path != "")
		$config_file = $this->_config_path . $file_name;
		else
		$config_file = $file_name;

		ini_set('track_errors', true);
		$fp = @fopen($config_file, "r");
		if (!is_resource($fp)) {
			$this->_trigger_error_msg("Could not open config file '$config_file'");
			return false;
		}

		$contents = ($size = filesize($config_file)) ? fread($fp, $size) : '';
		fclose($fp);

		$this->_config_data[$config_file] = $this->parse_contents($contents);
		return true;
	}
function load_file ( $ file_name , $ prepend_path = true ) { if ( $ prepend_path && $ this -> _config_path != "" ) $ config_file = $ this -> _config_path . $ file_name ; else $ config_file = $ file_name ; ini_set ( 'track_errors' , true ) ; $ fp = @ fopen ( $ config_file , "r" ) ; if ( ! is_resource ( $ fp ) ) { $ this -> _trigger_error_msg ( "Could not open config file '$config_file'" ) ; return false ; } $ contents = ( $ size = filesize ( $ config_file ) ) ? fread ( $ fp , $ size ) : '' ; fclose ( $ fp ) ; $ this -> _config_data [ $ config_file ] = $ this -> parse_contents ( $ contents ) ; return true ; }
Load a configuration file manually.

@param string $file_name file name to load
@param boolean $prepend_path whether current config path should be
prepended to the filename
Load a configuration file manually .