- Unexpected T-something. This error, like a parse error, often results from a missing punctuation mark prior to the point of the error. When errors occur in PHP, students should look before the point of the error for inadvertent omissions.
- Omitted $ in variable names. PHP requires a $ to identify variables. If a student accidentally forgets to include the $ in referencing a variable, an error will result.
- Blank page. If nothing appears when testing a PHP script, most likely there is an error but error information is probably not being reported. PHP error reporting should be turned on during testing and debugging. Error reporting can be turned on by adding the following line of code at the top of a script: <?php ini_set(‘display_errors’, ‘1’); ?>