Reply to Re: NEWBIE: error line numbers...are they always correct?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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