Enable Error Reporting in PHP
- 1. Edit php.ini to display errors:
- ♣ Ensure display_errors is set to On and error_reporting is set to E_ALL.
- ♣ Configuration File (php.ini) Path:
/Applications/XAMPP/xamppfiles/etc/php.ini
- ♣ Place the following code snippet at the very beginning of your PHP code:
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);