Forum Moderators: coopster
I try to make a few changes and test and so on so that it is easy to back out a change or to see what is happening.
Hope this helps
jean
<somehtml>
<? if (empty($e)) {
php stuff, you know
}?>
<somemorehtml>
<? if (avar) { some more php?>
Now I've forgotton the dollar in front of avar, but it'll tell me the error's about 7-10 lines above. I've been a bit specific by saying 7-10, but it's always above, and not like 1 or 2 lines. This doesn't happen on pages that have just php code.
This doesn't happen on pages that have just php code.
So it sounds like it is ignoring the html code and not counting those lines at all. My guess is that if you added the lines of html code to the error line number you'll have the editor line number. Not saying that is a solution to your problem but may explain the discrepency.
JAG
Well it's not like I've forgotten a quote at line 4 and it's picked it up at line 300 where the quotation endsWhen this condition occurs, I've usually seen that it is irrelevant where the quotation ends. Here's an example:
01 <?
02 $somevar = "string variable;
03?>
04-15 <somehtml>
16 <?
17 $somevar2 = "another string variable";
18?> In the case of a missing dollar sign, unless there is an earlier error, that's the error line reported. I really haven't noticed misleading line number reporting. Confusing, sometimes, but when I trace the error back to its source (line 02, above) it all makes sense.
[edited by: StupidScript at 10:24 pm (utc) on Jan. 10, 2007]