You are here: Re: NEWBIE: error line numbers...are they always correct? « PHP Programming Language « IT news, forums, messages
Re: NEWBIE: error line numbers...are they always correct?

Posted by Rik Wasmus on 09/02/07 00:02

On Sun, 02 Sep 2007 01:54:04 +0200, skim1114 <skim1114@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

 

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

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