During local development, you want to see every warning and error immediately (display_errors = 1). In production, never display raw errors or file paths to visitors—turn display_errors off and log errors privately to a log file.
ADVERTISEMENT