I know. My login script has 6704 lines and if Kix is missing something (in my case a ')' at line 4514) it doesn't mean that the typo is near 4514,
but it could also be 50 or 100 lines before. Where to start.
In this case, you will need a parser or indenter.. There are a few of them around here including MCA's KiXStrip (there is a flash from the past!) that can re-assemble your script and should point out where your missing missing parenthesis is. Also, any good Editor like: Ultraedit, EditPad will do "Bracket Matching" and thet will show where you have a missing quote, parenthesis, etc. as well. Good stuff! Another way to do this is to start breaking your script out into functions and start peeling back the layers of the onion and that can also help as well..
HTH,
Kent