A couple of more pointers:

Check the line right before the parse error for missing }) or ;

Always close your curley braces right after you open them and then insert
your code lines between the braces. {}  This will prevent you from
forgetting to close your braces.

Never write a single script with 2149 lines of code ;)

Fred

Jason G. <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
>
> I have ran across this error a number of times, and for those of you who
> are or will pulling out your hair, read on.
>
> When you get a:
>
> Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or
> `T_VAR' or `'}'' in your_script.php on line 2149
>
> Check to see if you have all of you { and } intact.
> The error could be thousands of lines away, but the error message may
point
> to the end of your file.
>
> I notice this behavior when I am working on class definitions and forget
to
> open close a block (switch, for, while) in a method in the class
somewhere.
>
> Hope it helps someone.
>
> -Jason Garber
> IonZoft.com
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to