Question : php show error
Answered by : annoyed-aardvark-igcygbot4nrt
error_reporting(E_ALL);
ini_set('display_errors', 1);
Source : https://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display | Last Update : Fri, 14 Aug 20
Question : show php all errors
Answered by : zealous-zebra-vzfu59zttopp
error_reporting(E_ALL);
ini_set('display_errors', '1');
Source : https://stackoverflow.com/questions/5438060/showing-all-errors-and-warnings | Last Update : Sun, 28 Feb 21
Question : display php error
Answered by : gifted-gerenuk-yd7n0j1uvazc
Only display php errors to the developer...
<?php
if($_SERVER['REMOTE_ADDR']=="00.00.00.00")
{
ini_set('display_errors','On');
}
else
{
ini_set('display_errors','Off');
}
?>
Just replace 00.00.00.00 with your ip address.
Source : https://www.php.net/manual/en/function.error-reporting.php | Last Update : Thu, 16 Dec 21