How to display PHP errors?

I have a script running on a web server. I have added some changes there but the script stops running. I am getting This page isn’t working. HTTP ERROR 500 I think the error reporting is turned off, how can I turn it on? All I want is to see the errors in my browser output.

You can add the codes in your PHP file.

ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');

Anyway, this doesn’t make PHP show parse errors. To show those errors, modify your php.ini with this line:

display_errors = on

If you don’t have access to php.ini, then adding this line in .htaccess might work as well.

php_flag display_errors 1