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 #177890 is a reply to message #177879] Wed, 25 April 2012 13:33 Go to previous messageGo to previous message
Redcat is currently offline  Redcat
Messages: 3
Registered: February 2012
Karma:
Junior Member
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.

Redcat
[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 20:06:45 GMT 2024

Total time taken to generate the page: 0.04091 seconds