> Hi All;
> 
> I have noticed that sometimes when I have made an error in the freetrade
> code I get a message such as " blah, blah, was expecting ",',/,)  ", but not
> always.
> 
> This at least lets me know what character I messed up with.  Is there a way
> to get this error on all pages or is it specific.
> The reason I ask is that I just spen 2 hours fighting with a modified
> "admin_categorys" page only to finally find out that I had blocked the last
> " } " character.  I ended up with a message that said could not parse the
> code on line 370 with was " ?> ".  that is all that was on the line.  Of
> course on line 369 was the blocked off  " } " character, but I dutifully
> went through the code line by line checking spelling etc.
> 
> How can I get PHP to tell me what it is missing when a parse error occurs?
> 
> Shawn

When I get a message saying "could not parse code" or "missing
whatever", I just start with the line they give you, and then make my
way back (checking for mismatched characters).  Sometimes it's helpful
if your editor can show you matchin paretheses (Emacs, VI, etc. can do
this).  So, in summary, no, I don't have any special tools, but on the
other hand, it's pretty easy when experience (which you'll quickly gain)
shows you what to look for.

-jj

-- 
if (shannon - jj) * behrens == webEngineer["CLEAR INK�"]:
    print "<i>imagination is the only real medium(sm)</i><br>"


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to