gpt4 book ai didi

php - 语法错误,意外的 '.',在 config.php 中期望 ']'

转载 作者:行者123 更新时间:2023-11-29 05:00:15 27 4
gpt4 key购买 nike

$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 = "contact@seoinabook.com";

以上代码是文章发布者脚本的一部分。它是标准数据库信息之后的下一行,

(db=数据库名,username=用户名等)

似乎安装没问题,但是当我尝试转到主页或管理页面时,它会启动。服务器名称和服务器是什么意思?我认为它们是相同的,除非服务器名称类似于 public_html。

这是我得到的错误:

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

最佳答案

问题出在 $_SERVER[seoinabook.com] 中的点。尝试引用 key $_SERVER['seoinabook.com']

关于php - 语法错误,意外的 '.',在 config.php 中期望 ']',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1897474/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com