PHP error_reporting() Function
PHP Tutorial » PHP error display
How do I report errors in PHP?
error_reporting — Sets which PHP errors are reported
The error_reporting() function sets the error_reporting directive at runtime.
level Optional. Specifies the error-report level for the current script.
error_reporting() examples
Specify different error level reporting:
// Turn off all error reporting
error_reporting(0);
// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);
// Report all PHP errors
error_reporting(E_ALL);
// Report all PHP errors
error_reporting(-1);
// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
?>
Related subjects:
PHP syntax
What is an array
PHP variabl
Array to comma separated
Tags: php error reporting off, error_reporting(0) in php, how to fix php error, display_errors, enable
How do I report errors in PHP?
How do I turn off PHP error reporting?
What is the role of error reporting in PHP?
Which one is the correct option for error reporting?
How do I report errors in PHP?
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this: - create a new file in which you include the faulty script:
error_reporting(E_ALL);
ini_set("display_errors", 1);
include("file_with_errors.php");
?>
execute this file instead of the faulty script file
error_reporting()
The error_reporting() function specifies which errors are reported.
PHP has many levels of errors, and using this function sets that level for the current script.
php error reporting off, error_reporting(0) in php, how to fix php error, display_errors, enable
How do I report errors in PHP?
How do I turn off PHP error reporting?
What is the role of error reporting in PHP?
Which one is the correct option for error reporting?
PHP error_reporting() - php tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.