syntax error, unexpected '.', expecting ']' in config.php-Collection of common programming errors

$dbhost = "10.21.47.198"; 
$dbuser = "xxxxx"; 
$dbpass = "xxxxx"; 
$dbname = "xxxxxx"; 
$prefix = "art_"; // you can change this prefix but not necessary 
$cdomain = $_SERVER['SERVER_NAME']=='xxxxxxxxx' ? '' : ".$_SERVER[xxxxxxxxxxx]"; //.yoursite.com $date_format = "F d, Y"; 
$admin_email = "[email protected]";

the above code is part of an article publisher script. It is the next line after the standard database info,

(db=database name, username= username, etc.)

It seems to install okay, but when I try to go to the home page or admin page this kicks in. What does it mean by server name and then server? I thought they were the same unless server name is like the public_html.

this is the error I get:

Parse error: syntax error, unexpected '.', expecting ']' in /home2/seobook/public_html/articlepublish/config.php on line 28