enable errors in php
/* 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);error_reporting(E_ALL);
ini_set('display_errors', 1);
Also in PHP:
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 126976 bytes) in
- expire Cache Manually laravel
- datetime format laravel
- 12th December 2020 date format in php
- create new laravel project composer
- ajax call php
- ?name="" value in php
- download laravel 8.x
- base64 file php
- Modularizing laravel 8.0
- HOW TO GET LAST INSERTED ID FROM TABLE IN SQL IN CODEIGNITER
- Database name seems incorrect You're using the default database name laravel. This database does not exist. Edit the .env file and use the correct database name in the DB_DATABASE key.
- check datatype of variable in php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 40 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
- check if word exist in string
- create a folder php
- echo console.log
- array unique values
- array in array php foreach
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5" laravel
- array key contains php
- disable timestamps for a table
- ReactPHP
- check if includes numbers php