Also, note that if your system setting for display_errors is off/0, then turning it on in your script will not help in the case of parse errors, as they are generated before the ini_set() function actually gets executed. In that case, you either need to turn on display_errors via you php.ini file or locally in a .htaccess file (assuming Apache and allowed to). Alternatively, using an editor/IDE with built-in PHP parse-checking can help you find any parse errors.