|
Posted by Sanders Kaufman on 11/19/07 07:18
"Jim Michaels" <jmichae3REMOVE@THISPLEASEyahoo.com> wrote in message
news:FdCdnTMkRqMsv9zanZ2dnUVZ_q-jnZ2d@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.
Navigation:
[Reply to this message]
|