errorLevel php no warnings
/* 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:
- all the ways to address a page in php
- filter_var filter_validate_url
- date("Y")
- ext dom php
- Format Month as a number php
- determine length of stirng php
- Class 'PHPUnit_Framework_TestCase' not found in vendor
- filer validation in laravel
- date time format list php
- array_column in php
- Created Migration: laravel
- find a word in srting php
- can i throw exception in catch block php
- PHP Numbers
- data type checking php
- Call to a member function diffForHumans() on string in
- display error message in php
- error e all php
- datetime format laravel
- How to calculate the difference between two dates
- catch try php
- check key in array php
- comment acceder à la base de données phpmyadmin sur mac ave
- Target class does not exist.