alow error reportng php
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:
- array distinct php
- check if contains a var php
- acf post object
- How can I install php7.4 on Ubuntu 18.04?
- How to add validation form image in laravel
- PHP string mask day-year
- Undefined variable: subcopy laravel mail
- PHp get day in date
- current date format in php
- Reading a Tree of Files and Folders in php
- check the php version used by composer
- date time H:i:s in php
- Add “Affected Products” in catalog price rule
- Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: fileinfo
- can we find like directorries in php
- create new record via model in laravel
- check if an array contains a key php
- add seeder laravel
- find index of a charachter charachrer isn string phph
- base64 encode and decode in php
- datetime format laravel
- create a folder php
- check substring php
- check if some character exists in string php