What is the best practice for loading a site from a config file in PHP without opening a new window?

To load a site from a config file in PHP without opening a new window, you can use the `header` function to redirect the user to the desired site. This will ensure that the site is loaded within the same window without opening a new one.

<?php
$config = parse_ini_file('config.ini');
$siteUrl = $config['site_url'];

header("Location: $siteUrl");
exit;
?>