error reporting 0in hph
/* 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);ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Also in PHP:
- exception handling in php with example
- conole.log in php
- die php prnint error
- composer laravel install version 5.6 command
- eloquent remove updated_at
- $data length in php
- date print in php
- check value present in string php
- What is a Regular Expression in php
- Connect to SQL in a php PDO and print the data in it
- db seed
- -5 php change timezone
- date du joure n php
- connect an if statement to an input php
- composer create project laravel 7
- catch multiple exceptions php
- Woocommerce Get Related Products by Same Sub Category with no Repeate Same Product
- create crandon string php
- Laravel Mix npm run production error
- <?php if ( is_home()
- array reverse order php
- error showing in php
- case php try catch
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 5.6.0".