getSetting( 'settings', 'site', 'title' ); print "Title is $title\n"; list( $dbHost, $dbUser, $dbPassword ) = ezcConfigurationManager::getInstance()->getSettingsAsList( 'settings', 'db', array( 'host', 'user', 'password' ) ); print "Connecting to database at <{$dbHost}> with user <{$dbUser}> and password <{$dbPassword}>.\n"; if ( ezcConfigurationManager::getInstance()->hasSetting( 'settings', 'db', 'socket' ) ) { print 'Socket: ' . ezcConfigurationManager::getInstance()->getSetting( 'settings', 'db', 'socket' ) . "\n"; } } try { // Start of program $man = ezcConfigurationManager::getInstance(); $man->init( 'ezcConfigurationIniReader', dirname( __FILE__ ), array( 'useComments' => false ) ); showSettings(); } catch ( Exception $e ) { print "Caught exception while reading INI file\n"; print $e->getMessage() . "(" . $e->getCode() . ")\n"; print $e->getTraceAsString() . "\n"; } ?>