Last active
June 19, 2018 03:20
-
-
Save AnthonyVadala/fcfb419d3a2056e055e8bac064b14ea8 to your computer and use it in GitHub Desktop.
Display PHP errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
?> |
Print internal error information
<?php
// http://php.net/manual/en/pdostatement.errorinfo.php
$error = $query->errorInfo();
// See if anything is output here
print_r($error);
?>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modify
php.ini
to show parse errors