How do get PHP Errors to display?
- Monday, January 18, 2016, 15:59
- How-to, PHP
- Add a comment
To get PHP errors to display without modifying php.ini add the following codes to the top of the php file:
1 2 3 |
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); |
However, it won’t show parse errors. To show parse errors modify your php.ini with this line:
1 |
display_errors = on |
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!