How to get useful error messages in PHP and not see a blank page?
Hello everyone! I'm a beginner PHP developer and I'm writing a small website. I constantly encounter situations where the code doesn't work as I expect, but instead of an error message, I just see a blank white page. This is very frustrating! Here's an example:
```php
```
When I run this code, I see a blank page. No error messages. I understand the problem is division by zero, but PHP stays silent. Previously I worked with JavaScript, where errors are shown immediately in the browser console, but here — complete silence.
I tried enabling display_errors in php.ini, but it didn't help — apparently I'm doing something wrong. I also heard about error_re
No answers yet.
Log in to leave an answer
Blogs
Testing in Go: unit, integration, e2e — a complete guide