PHP E_CORE_ERROR

The E_CORE_ERROR error level deals with core errors doing the initial startup of PHP.

740 views
d

By. Jacob

Edited: 2021-04-18 16:52

An E_CORE_ERROR is a fetal error that will end execution of your script.

Core errors are caused by PHP's core, and will not by thrown by functions. Very few things seem to cause core errors.

E_CORE_ERROR is included in E_ALL., and will not be sent to a custom error handler. Instead it is handled in accordance with the error_reporting setting.

To show all errors:

error_reporting(E_ALL);

Here is a few examples of potential core errors:

Tell us what you think:

  1. In this Tutorial, it is shown how to redirect all HTTP requests to a index.php file using htaccess or Apache configuration files.
  2. How to create a router in PHP to handle different request types, paths, and request parameters.
  3. Tutorial on how to use proxy servers with cURL and PHP
  4. When using file_get_contents to perform HTTP requests, the server response headers is stored in a reserved variable after each successful request; we can iterate over this when we need to access individual response headers.
  5. How to effectively use variables within strings to insert bits of data where needed.

More in: PHP Tutorials