|
Posted by skim1114 on 09/02/07 00:21
On Sep 1, 8:02 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Sun, 02 Sep 2007 01:54:04 +0200, skim1114 <skim1...@gmail.com> wrote:
> > I am getting a parse error...but the line that the code is in...is a
> > comment that is surely a comment.
>
> Impossible to say what's wrong without the offending code :)
>
> > Other times I know the code syntax
> > is correct in that line...is this always precise?
>
> Well, the line it's in is usually correct. It could however happen the
> parser encounters an error there due to a mistake made earlier:
>
> <?php
> echo 'foo'
> /* we forgot the ending semicolon */
> echo 'bar';
> ?>
>
> Now it will complain about an error on line 4, because you forgot to add a
> semicolon on line 2. Up till then the code was totally valid though.
> --
> Rik Wasmus
Thank you...that makes some sense...I'm trying to learn this...it's
not easy, so having these groups is very helpful.
[Back to original message]
|