2014-09-03 111 views
-1

這是我得到的錯誤:解析錯誤!使用WordPress

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'); 

我知道這是簡單的東西,但我想不出它出來了!

回答

1

我想你已經在這一行語法錯誤:(看在開場和結束的單引號,他們會有所不同)

require(dirname(__FILE__) . ‘/wordpress/wp-blog-header.php'); 

正確的應該是這樣的:

require(dirname(__FILE__) . '/wordpress/wp-blog-header.php'); 

希望這會幫助你。

+0

我愛你拉。愚蠢的聰明語錄!謝謝!!!! – 2014-09-03 05:39:22