|
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]
|