意外的} [英] unexpected }
问题描述
我有一个638行的PHP代码和&不会运行的HTML。
我得到PHP Parse错误:语法错误,意外''}''在quiz \\quiz.php中
在第594行。
我写了一个支撑检查器,检查perens,方括号和卷曲
括号不匹配&打开并检查完美。所以我不知道
知道花括号错误是什么。这是假的。
任何人都知道真正的错误可能是什么?代码看起来很好。/ b $ b对我来说是原始的。
----------------------- -------------
Jim Michaels
发送电子邮件,编辑地址
" ;因为我们不能很好地理解大脑,所以我们不断地想要使用最新技术作为试图了解它的模型。在我的童年时代,我们始终确信大脑是一个电话总机。 (''还有什么可能?'')我很高兴看到英国神经科学家谢林顿认为
大脑像电报系统一样工作。弗洛伊德经常将大脑与液压和电磁系统进行比较。 Leibniz将它与磨坊进行了比较,
我被告知一些古希腊人认为大脑的功能就像一个弹射器一样。目前,显然,这个比喻是数字的b
计算机。 - John R Searls。
" Jim Michaels" < jm ************ @ THISPLEASEyahoo.com写在留言中
新闻:Fd ****************** ************@comcast.com。 ..
>我有一个638行的PHP代码和&不会运行的HTML。
我得到PHP解析错误:语法错误,意外''}''在quiz \\quiz.php上
line 594"。
我写了一个支撑检查器,检查perens,方括号,并且卷曲
括号不匹配&打开并检查完美。所以我不知道
是什么关于花括号错误。这是假的。
任何人都知道真正的错误可能是什么?代码看起来像我原来的b $ b。
根据该描述,它确实显示错误是错误的。
但是,只是在云雀上,看看是否你有{
"在一个字符串里面。
卷曲括号后跟一个美元符号告诉PHP它是一个复杂的,
内联变量。
所以,如果你这样做,它可能会产生你描述的错误,而不会用支架检查器提高警报。
>
------------------------------------
Jim Michaels
用于发送电子邮件,编辑地址
因为我们不太了解大脑我们经常
诱惑使用最新技术作为试图理解的模型
。在我的童年时代,我们始终确信大脑是一个电话
总机。 (''它还能做什么?'')我很高兴看到这个很好的英国神经科学家Sherrington认为大脑
就像电报系统一样工作。弗洛伊德经常将大脑与液压和电磁系统进行比较。 Leibniz把它比作一个磨坊,并且
我被告知一些古希腊人认为大脑的功能类似于
弹射器。目前,显然,这个比喻是数字化的。 - 约翰R Searls。
Jim Michaels写道:
我有一个638行的全局PHP代码和不会运行的HTML。
我得到PHP Parse错误:语法错误,意外''}''在quiz \\quiz.php中
在第594行。
我写了一个支撑检查器,检查perens,方括号和卷曲
括号不匹配&打开并检查完美。所以我不知道
知道花括号错误是什么。这是假的。
任何人都知道真正的错误可能是什么?代码看起来很好。/ b $ b对我来说是原始的。
----------------------- -------------
Jim Michaels
发送电子邮件,编辑地址
" ;因为我们不能很好地理解大脑,所以我们不断地想要使用最新技术作为试图了解它的模型。在我的童年时代,我们始终确信大脑是一个电话总机。 (''还有什么可能?'')我很高兴看到英国神经科学家谢林顿认为
大脑像电报系统一样工作。弗洛伊德经常将大脑与液压和电磁系统进行比较。 Leibniz将它与磨坊进行了比较,
我被告知一些古希腊人认为大脑的功能就像一个弹射器一样。目前,显然,这个比喻是数字的b
计算机。 - John R Searls。
Jim,
显然某处存在不匹配:-)。你的大括号检查器
忽略字符串中的大括号?还是在评论中?任何人都可以抛出
。
尝试使用语法高亮的编辑器。在Windows上我推荐Crimson;
它有额外的优势,可以为你匹配。
-
====== ============
删除x来自我的电子邮件地址
Jerry Stuckle
JDS计算机培训公司
js ******* @ attglobal.net
==================
I have a 638 line glob of PHP code & HTML that won''t run.
I get "PHP Parse error: syntax error, unexpected ''}'' in quiz\\quiz.php
on line 594".
I wrote a brace checker that checks perens, square brackets, and curly
braces for mismatches & opens and it checks out perfect. so I don''t
know what it is about the curly brace error. it''s false.
anybody have a clue as to what the real error might be? the code looks
pristine to me.
------------------------------------
Jim Michaels
for email, edit the address
"Because we do not understand the brain very well we are constantly
tempted to use the latest technology as a model for trying to understand
it. In my childhood we were always assured that the brain was a
telephone switchboard. (''What else could it be?'') I was amused to see
that Sherrington, the great British neuroscientist, thought that the
brain worked like a telegraph system. Freud often compared the brain to
hydraulic and electro-magnetic systems. Leibniz compared it to a mill,
and I am told some of the ancient Greeks thought the brain functions
like a catapult. At present, obviously, the metaphor is the digital
computer." - John R Searls.
"Jim Michaels" <jm************@THISPLEASEyahoo.comwrote in message
news:Fd******************************@comcast.com. ..>I have a 638 line glob of PHP code & HTML that won''t run.
I get "PHP Parse error: syntax error, unexpected ''}'' in quiz\\quiz.php on
line 594".
I wrote a brace checker that checks perens, square brackets, and curly
braces for mismatches & opens and it checks out perfect. so I don''t know
what it is about the curly brace error. it''s false.
anybody have a clue as to what the real error might be? the code looks
pristine to me.It does appear, from that description, that the error is in error.
But, just on a lark, look to see if you have "{
" inside a string somewhere.
Curly bracket followed by a dollar sign tells PHP that it''s a complex,
inline variable.
So, if you that, it could produce the error you describe, without raising
the alarm with your bracket-checker.
>
------------------------------------
Jim Michaels
for email, edit the address
"Because we do not understand the brain very well we are constantly
tempted to use the latest technology as a model for trying to understand
it. In my childhood we were always assured that the brain was a telephone
switchboard. (''What else could it be?'') I was amused to see that
Sherrington, the great British neuroscientist, thought that the brain
worked like a telegraph system. Freud often compared the brain to
hydraulic and electro-magnetic systems. Leibniz compared it to a mill, and
I am told some of the ancient Greeks thought the brain functions like a
catapult. At present, obviously, the metaphor is the digital
puter." - John R Searls.
Jim Michaels wrote:I have a 638 line glob of PHP code & HTML that won''t run.
I get "PHP Parse error: syntax error, unexpected ''}'' in quiz\\quiz.php
on line 594".
I wrote a brace checker that checks perens, square brackets, and curly
braces for mismatches & opens and it checks out perfect. so I don''t
know what it is about the curly brace error. it''s false.
anybody have a clue as to what the real error might be? the code looks
pristine to me.
------------------------------------
Jim Michaels
for email, edit the address
"Because we do not understand the brain very well we are constantly
tempted to use the latest technology as a model for trying to understand
it. In my childhood we were always assured that the brain was a
telephone switchboard. (''What else could it be?'') I was amused to see
that Sherrington, the great British neuroscientist, thought that the
brain worked like a telegraph system. Freud often compared the brain to
hydraulic and electro-magnetic systems. Leibniz compared it to a mill,
and I am told some of the ancient Greeks thought the brain functions
like a catapult. At present, obviously, the metaphor is the digital
computer." - John R Searls.
Jim,
Obviously there''s a mismatch somewhere :-). Did your brace checker
ignore braces within strings? Or within comments? Either one can throw
it off.
Try a editor with syntax highlighting. On Windows I recommend Crimson;
it has the added advantage of matching up braces for you.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
这篇关于意外的}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!