FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » What happens when i dont use the semicolon for closing my statement
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: What happens when i dont use the semicolon for closing my statement [message #177893 is a reply to message #177890] Wed, 25 April 2012 14:55 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Redcat wrote:
> On Wed, 25 Apr 2012 03:05:01 -0700, hakimserwa wrote:
>
>> Parse error: syntax error, unexpected '}', expecting ',' or ';' in
>> C:\xampp\htdocs\hello.php on line 13
>>
>> how do i read this error and undcerstan what it means so next time in
>> can be able to solve it so quickly.
>
> In this case take a look at line 13 (though with PHP error reporting -
> with any language's error reporting, actually - the error might not
> actually be on the line mentioned in the report). If you intentionally
> left off the semicolon as was suggested in a previous post, to see what
> would happen, then the error message is saying "Hey, you left something
> off!". The parser was expecting to see a ',' or a ';' but it found a '}'
> instead.
>
> If this error message doesn't seem to jibe with what you expect, then
> post the entire php file so we can look at it and we'll figure out what
> the error was.
>
Or alternatively, don't program (in PHP) and wait for a language that
can intuitively decide 100% correctly what you really meant from what
you actually said.


> Redcat


--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Download now
Next Topic: Usage of named entities (HTML) in imagettftext
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 19:22:20 GMT 2024

Total time taken to generate the page: 0.04198 seconds