Home > Testing > Parse error

Parse error

You may found parse error most dangerous type of error in PHP programming.
Parse errors are reported by interpreter when any syntax error(s) are found on your web page.
You may find parse error dangerous and serious because it generally does not report correct place of error(s). But good point is that it at least report you error directly and it does not goes unreported like logical errors.
Here is a list of those errors: -
1. Parse error: syntax error, unexpected $end in … on line..
2. Parse error: syntax error, unexpected T_IF/T_WHILE/T_FOR, expecting ‘{‘ in …
3. Parse error: unexpected T_IF, expecting ‘,’ or ‘;’ in … on line ..
4. Parse error: unexpected T_STRING, expecting’,’ or ‘;’ in … on line …

Categories: Testing
  1. No comments yet.
  1. No trackbacks yet.