这是我得到的错误:
Parse error: syntax error, unexpected '' );' (T_ENCAPSED_AND_WHITESPACE) in /htdocs/index.php on line 17
这是 index.php 代码:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php' );
我知道这很简单,但我无法理解!
答案 0 :(得分:1)
我认为你在这一行有一个语法错误:(看看开头和结尾的单引号,它们看起来不一样)
require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php' );
正确的应该是这样的:
require(dirname( __FILE__ ) . '/wordpress/wp-blog-header.php');
希望这会对你有所帮助。