How do I get PHP errors to display?

I have checked my PHP ini file and display errors is set and also error reporting is E_ALL. I have restarted my Apache web server.

I have even put these lines at the top of my script, and it doesn’t even catch simple parse errors. For example, I declare variables with a “$” and I don’t close statements";". But all my scripts show a blank page on these errors, but I want to actually see the errors in my browser output.

ini_set(‘display_errors’, 1);
What is left to do?

please first of all, verify via PHPinfo page that your setting is applied.

<?php phpinfo(); ?> test if php is even working!

Did you add the php tags?

<?php error_reporting(E_ALL); ini_set('display_errors', 1); ?>