<?php
/*
* userprofile.php
* bshades.com
* Coded by Orgy
* rrawbb[at]gmail[dot]com
*/
require_once("inc/_top.php");
这是我的代码有问题了。
以下是错误消息:
分析错误:语法错误,第1行中/home/blacksha/public_html/userprofile.php中的意外T_REQUIRE_ONCE
正如您所看到的,require_once甚至不在第1行,所以我不知道问题可能是什么。
发布于 2011-04-25 22:25:53
NBSP
。在require语句之前有一个不可见的非标准空格字符。这是重现这个错误的唯一可靠方法。
eval( chr(0xA0) . ' require_once(1); ' );
# that's nbsp
// PHP Parse error: syntax error, unexpected T_REQUIRE_ONCE in
0xA0
/nbsp在那个位置被解释为赤字。基本上,就像在你的声明前面有一个常数一样:
ASCII require_once(123);
发布于 2012-01-15 01:38:11
如果忘记了尾随分号,也可以复制此错误代码;以终止语句.
即
define('FOO', 'foo')
require_once('foo.php');
https://stackoverflow.com/questions/5783491
复制相似问题