title: $_SERVER["SCRIPT_URI"] not working? alternative?
body: <p>This is odd, but for some reason the <code>$_SERVER["SCRIPT_URI"]</code> will not return the domain name when I am in child/sub-pages but will only work on the main page. Not sure if its due to the script (WordPress) or host, but please can you suggest any reliable solution to retrieve the domain name with PHP?</p>