Report all errors in PHP

PHOTO EMBED

Tue Jun 08 2021 20:16:08 GMT+0000 (UTC)

Saved by @lr #php #debugging

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
content_copyCOPY

Add to the top of the file if you need to have all errors displayed during development. Make sure to remove in production.