newatthis Posted March 9, 2006 Posted March 9, 2006 I changed a couple of color codes in my forum.login.php and forum.php, now I am getting Parse errors. What is a Parse error, unexpected T_VARIABLE, and unexpected T_LNUMBER? I am so new at this, it defies description, and I have no idea what's going on. Any help would be sooo greatly appreciated!
kgt Posted March 9, 2006 Posted March 9, 2006 A parse error means PHP can't understand what you've typed. Just as english and other languages have proper grammar and punctuation structures, so do programming languages. An unexpected T_VARIABLE means the parser (the program that reads and interprets code) came across a variable where it's syntactically incorrect for one to exist. Contributions Discount Coupon Codes Donations
newatthis Posted March 9, 2006 Author Posted March 9, 2006 A parse error means PHP can't understand what you've typed. Just as english and other languages have proper grammar and punctuation structures, so do programming languages. An unexpected T_VARIABLE means the parser (the program that reads and interprets code) came across a variable where it's syntactically incorrect for one to exist. Thank you for explaining that. So can you offer guidance on how one goes about fixing a Parse error? I have checked and rechecked the line where the error is said to be located and can find nothing different from when I changed the original color code, I made sure that only the color code number was changed and that all the ; " and so on was left intact. I'm sure I am probably missing something, but I am unable to find the error.
kgt Posted March 9, 2006 Posted March 9, 2006 Parse errors occur when the parser reaches something it cannot make sense of. This means the line number reported is usually the line after - and in some cases several lines after - the actual error. Download a php editor with syntax highlighting (there are plenty of free ones - just do a google search) to help you find the error. Contributions Discount Coupon Codes Donations
newatthis Posted March 9, 2006 Author Posted March 9, 2006 Parse errors occur when the parser reaches something it cannot make sense of. This means the line number reported is usually the line after - and in some cases several lines after - the actual error. Download a php editor with syntax highlighting (there are plenty of free ones - just do a google search) to help you find the error. Thank you so much. I'm going to Google right now, but I will probably be back for more information.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.