Re: Errors
| From: | M. Sokolewicz | Date: | Wed, 01 Dec 2004 18:30:08 +0000 |
| Subject: | Re: Errors | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203239@lists.php.net to get a copy of this message | ||
Greg Donald wrote:
On Wed, 1 Dec 2004 10:44:00 -0700, olsofty <olsofty@olsofty.com> 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).