You are here: Re: unexpected } « PHP Programming Language « IT news, forums, messages
Re: unexpected }

Posted by Jim Michaels on 11/20/07 05:20

Jerry Stuckle wrote:
> 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.
>
>

it ignores within comments. and as I said, braces match.

--

------------------------------------
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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация