PHP解析错误:语法错误,意外的“!"在 [英] PHP Parse error: syntax error, unexpected '!' in

查看:65
本文介绍了PHP解析错误:语法错误,意外的“!"在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用机架式云站点,而我的wordpress配置未连接.

I am currently using rackspace cloudsites and my wordpress config is not connecting.

这是错误:

PHP解析错误:语法错误,意外的!"在第28行的/mnt/stor7-wc1-dfw1/672237/www.site.com/web/content/wp-config.php中

PHP Parse error: syntax error, unexpected '!' in /mnt/stor7-wc1-dfw1/672237/www.site.com/web/content/wp-config.php on line 28

第28行似乎是密码字段:

Line 28 seems to be the password field:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', ' 672207_wordpress');

/** MySQL database username */
define('DB_USER', '672207_wpusers');

/** MySQL database password */
define('DB_PASSWORD', ‘!Password’);

/** MySQL hostname */

推荐答案

解析错误来自在‘!Password’

将其更改为'!Password'

它们很漂亮,却致命.

这可能是由于使用Word或类似工具之类的字处理器引起的,或者是从网站上复制而来,或者是键盘上的引号引起的.

This may have been caused by using a Word Processor such as Word or similar, or copied from a Website, or the type of quotes on your keyboard.

IDE会选择的.

如Kevin B in a comment 所述,注意到密码"一词如何以浅蓝色显示?

As stated by Kevin B in a comment, notice how the word "Password" shows up in light blue?

StackOverflow的语法突出显示已完成工作,并且是一个标志.

StackOverflow's syntax highlighting has done its job and was a sign.

这篇关于PHP解析错误:语法错误,意外的“!"在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆