Monday 2 July 2012

Common PHP Errors

Common Errors

Use of undefined constant title
Most likely, you forgot to include the $ when referencing a variable.
parse error, unexpected '='
Most likely you forgot to include the $ when referencing a variable.
parse error, unexpected ')' 
parse error, unexpected '(' 
Most likely, you forgot this parenthesis' mate.
parse error, unexpected T_STRING
This usually means you forgot a quotation mark but it can also mean you forgot a semi-colon at the end of a previous line.
parse error, unexpected T_ELSE
You have an else statement with no opening if.

1 comment:

Note: only a member of this blog may post a comment.