This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
该错误意味着编译器(解释器)遇到了在当前上下文中没有意义的符号。 使用标准样式 if 的地方是第 130 行,它使用大括号而不是 if 的替代形式。 因此,在第 130 行进行更改:
顺便
说一句,如果您感兴趣的话,神秘消息实际上来自 Bison。
还有一些其他翻转的标准 if 和 elseif。 这是编译良好的完整代码:
The error means that the compiler (interpreter) has encountered a symbol that doesn't make sense in the current context. The one place where standard style if's are used is on line 130, where it is using braces instead of the alternate form of if. So, on line 130 change:
to
BTW the cryptic message actually comes from Bison, if you are interested.
There are a couple of other flipped standard if's and elseifs. Here is the complete code that compiles fine:
尝试替换
为
try replacing
with
你必须替换
为
you have to replace
with
您需要先输入
}
来结束if ($_SERVER['REQUEST_METHOD'] != 'POST'){
,然后才能结束英文if
所以像这样:
因为 if 语句是嵌套的,所以它想要结束最近打开的 if 语句,因此它需要一个右括号,因为这就是您打开的方式。 当它看到 endif 时,它会说“这不是最近的 if 使用的内容”,并出现错误。
You need to put in a
}
to end theif ($_SERVER['REQUEST_METHOD'] != 'POST'){
before you can end the englishif
So something like this:
Because the if statement is nested, it wants to end the most recently opened if statement, so it is expecting a close bracket because that is how you opened. When it sees the endif, it says "Thats not what the most recent if uses", and errors.