Re: Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg Donald wrote:
On Wed, 1 Dec 2004 10:44:00 -0700, olsofty <olsofty@xxxxxxxxxxx> wrote:

I am very new to PHP been working on a script to access MySql have got it
down pretty good, but, being lazy I like to copy code to not have to
re-write it, I am now getting a constant flood of errors. I have looked in
my book I have searched on the php site and have had no luck.
WHAT IN THE HECK IS A "T_" error. I get "T_Else", T_Variable, T_what ever.
What does it mean????
Very frustrated old man.


Where's the code?


T_* errors are parse-errors. Basically, the parser checks (parses) the syntax before "running" the script, during this parsing, the parser might find a syntax error. All those T_* parts stand for specific keywords/parts of the PHP syntax. When the parser tells you it found an unexpected T_STRING, it means that the parser found a string where it doesn't expect one. Same thing for eg T_ELSE (an else statement where one shouldn't be).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux