I'm trying to refresh page on the domain that it has been opened on, website can be accessed from multiple domains so I want to use the current one.
I tried
$url = "http://" . $_SERVER['HTTP_HOST'] . "/p.php" . "\">";
echo "<meta http-equiv=\"refresh\" content=\"0;url="; echo $url;
But that redirects me to: p.php without any domain, same result using $_SERVER['SERVER_NAME']
Not sure what I'm doing wrong ?