; error_reporting in php.ini
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);/* Display all errors like dev */
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
/* Display PROD errors */
ini_set('display_errors', 1);
ini_set('display_startup_errors', 0);
error_reporting(E_ALL & ~E_NOTICE);
/* OTHER SETTINGS*/
// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Reporting E_NOTICE
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);
// For PHP < 5.3
error_reporting(E_ALL ^ E_NOTICE);
// Report all PHP errors
error_reporting(E_ALL);
//or
error_reporting(-1);
//or
error_reporting(0);
Also in PHP:
- create timestamp from string php
- echo redirect set header
- $_FILES PHP list
- 12:30 am time format validation in laravel
- ci db query error
- create dir using php
- clear app cache laravel
- add days to date php
- CODEIGNITER codeigniter 4 auth
- check that array key exists
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 134217736 bytes) in phar in windows
- disable errors php
- conver to uppercase in php
- autoload.php
- Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\heermatka\myprofile.php:48) in C:\xampp\htdocs\heermatka\myprofile.php on line 144
- clear cache database laravel
- check if string contains only one word
- date time php format double digits
- Bubble Sort in array in php
- check the existing image in s3 laravel
- date class in php
- erroring reporting all in php
- check if array key matches php
- check if number is divided by 5 php