Avatar ·

How to display PHP errors on screen? Nothing works

Hello everyone! I'm a beginner in PHP and writing my first website. I've encountered a problem: when an error occurs in the code, I just see a blank page or white screen of death. No error messages are displayed. Here's an example of my code: ```php ``` I expect to see a division by zero error, but the page is just blank. I tried adding `error_reporting(E_ALL);` at the beginning of the file — it didn't help. I also tried `ini_set('display_errors', 1);` — also no result. I have a local server OpenServer, PHP version 8.1. What am I doing wrong? Maybe I need to change something in php.ini? Or is this a problem with the server settings themselves? Please advise how to properly configure error output so I can see them on screen during development.