1 2 3 4 5 6 7 8 9
<?php $config = []; $file_path = "{$_SERVER['DOCUMENT_ROOT']}/config.ini"; if (file_exists($file_path)) { $config = parse_ini_file($file_path, true); } define('INSTANCE_NAME', $config['instance']['name'] ?? $_SERVER['HTTP_HOST']);