SyntaxFix
Write A Post
Hire A Developer
Questions
Try $_SERVER['SERVER_NAME'].
$_SERVER['SERVER_NAME']
Tips: Create a PHP file that calls the function phpinfo() and see the "PHP Variables" section. There are a bunch of useful variables we never think of there.
phpinfo()