$config = parse_ini_file('config.ini'); $host = $config['host']; $user = $config['user']; $pass = $config['pass']; $name = $config['name']; ...