This is my PHP script -
<?php error_reporting(E_ALL); echo('catch this -> ' ;. $thisdoesnotexist); ?>
Which obviously should show something if it were to be executed.
All I see is an empty page. Why is error_reporting(E_ALL)
not working?
<?php ini_set("display_errors", "1"); error_reporting(E_ALL); echo('catch this -> ' ;. $thisdoesnotexist); ?>
Does not help either. All I get is an empty page.
I've been to php.ini
and set display_errors = On
and display_startup_errors = On
. Nothing happens.
The quickest way to display all php errors and warnings is to add these lines to your PHP code file: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); The ini_set function will try to override the configuration found in your php. ini file.
Your file has a syntax error, so your file was not interpreted, so settings were not changed and you have a blank page.
You can separate your file in two:
<?php ini_set("display_errors", "1"); error_reporting(E_ALL); include 'error.php';
<? echo('catch this -> ' ;. $thisdoesnotexist);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With