{"id":7272,"date":"2014-06-03T23:30:02","date_gmt":"2014-06-03T23:30:02","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/syntax-error-unexpected-expecting-in-config-php-collection-of-common-programming-errors\/"},"modified":"2014-06-03T23:30:02","modified_gmt":"2014-06-03T23:30:02","slug":"syntax-error-unexpected-expecting-in-config-php-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/syntax-error-unexpected-expecting-in-config-php-collection-of-common-programming-errors\/","title":{"rendered":"syntax error, unexpected &#39;.&#39;, expecting &#39;]&#39; in config.php-Collection of common programming errors"},"content":{"rendered":"<pre><code>$dbhost = \"10.21.47.198\"; \n$dbuser = \"xxxxx\"; \n$dbpass = \"xxxxx\"; \n$dbname = \"xxxxxx\"; \n$prefix = \"art_\"; \/\/ you can change this prefix but not necessary \n$cdomain = $_SERVER['SERVER_NAME']=='xxxxxxxxx' ? '' : \".$_SERVER[xxxxxxxxxxx]\"; \/\/.yoursite.com $date_format = \"F d, Y\"; \n$admin_email = \"contact@seoinabook.com\";\n<\/code><\/pre>\n<p>the above code is part of an article publisher script. It is the next line after the standard database info,<\/p>\n<p>(db=database name, username= username, etc.)<\/p>\n<p>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.<\/p>\n<p>this is the error I get:<\/p>\n<pre><code>Parse error: syntax error, unexpected '.', expecting ']' in \/home2\/seobook\/public_html\/articlepublish\/config.php on line 28\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$dbhost = &#8220;10.21.47.198&#8221;; $dbuser = &#8220;xxxxx&#8221;; $dbpass = &#8220;xxxxx&#8221;; $dbname = &#8220;xxxxxx&#8221;; $prefix = &#8220;art_&#8221;; \/\/ you can change this prefix but not necessary $cdomain = $_SERVER[&#8216;SERVER_NAME&#8217;]==&#8217;xxxxxxxxx&#8217; ? &#8221; : &#8220;.$_SERVER[xxxxxxxxxxx]&#8221;; \/\/.yoursite.com $date_format = &#8220;F d, Y&#8221;; $admin_email = &#8220;contact@seoinabook.com&#8221;; the above code is part of an article publisher script. It is the next line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7272","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7272"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7272\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}