public static function loadConfig($paths)
    {
        $apaths = explode(';', $paths);
        foreach ($apaths as $path) {
            if (is_file($p = realpath($path))) {
                $ext = strtolower(pathinfo($p, PATHINFO_EXTENSION));
                if ($ext === 'conf') {
                    return Daemon::$config->loadFile($p);
                } else {
                    Daemon::log('Config file \'' . $p . '\' has unsupported file extension.');
                    return false;
                }
            }
        }
        Daemon::log('Config file not found in \'' . $paths . '\'.');
        return false;
    }
public static function loadConfig($paths)
    {
        $apaths = explode(';', $paths);
        foreach ($apaths as $path) {
            if (is_file($p = realpath($path))) {
                $ext = strtolower(pathinfo($p, PATHINFO_EXTENSION));
                if ($ext === 'conf') {
                    return Daemon::$config->loadFile($p);
                } else {
                    Daemon::log('Config file \'' . $p . '\' has unsupported file extension.');
                    return false;
                }
            }
        }
        Daemon::log('Config file not found in \'' . $paths . '\'.');
        return false;
    }
public static function loadConfig ( $ paths ) { $ apaths = explode ( ';' , $ paths ) ; foreach ( $ apaths as $ path ) { if ( is_file ( $ p = realpath ( $ path ) ) ) { $ ext = strtolower ( pathinfo ( $ p , PATHINFO_EXTENSION ) ) ; if ( $ ext === 'conf' ) { return Daemon :: $ config -> loadFile ( $ p ) ; } else { Daemon :: log ( 'Config file \'' . $ p . '\' has unsupported file extension.' ) ; return false ; } } } Daemon :: log ( 'Config file not found in \'' . $ paths . '\'.' ) ; return false ; }
Load config-file
@param string $paths Path
@return boolean - Success.
Load config - file