enable display error in php
/* Answer to: "php error reporting" */
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
/*
What do these lines of code do exactly?
The ini_set function will try to override the configuration found
in your PHP ini file.
The display_errors and display_startup_errors are just two of the
directives that are available. The display_errors directive will
determine if the errors will be displayed or hidden to the user.
Usually, the dispay_errors directive should be turned off after
development.
The display_startup_errors, however, is a separate directive
because the display_errors doesn’t handle the errors that will be
encountered during PHP’s startup sequence. The list of the
directives that can be overridden by the ini_set function is found
in the official documentation.
*/
Also in PHP:
- base64 encode and decode in php
- create laravel 6 project
- check string on string php
- Get the number of days between two dates in PHP
- create random unique password with php
- date_default_timezone_set("America/New_York"); echo "The time is " . date("h:i:sa");
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 157 bytes) in C:\wamp64\scripts\refresh.php on line 2263
- check if word exist in string
- buscar palabra en cadena php
- count length of string pphp
- Making visible or hidden attributes from Eloquent temporarily
- cache DB table laravel
- chekck type of php
- count the length of a string php
- convert uppercase to capitalize in php
- Add “Affected Products” in catalog price rule
- check if string has symbol php
- codeigniter select for update
- can you have more than one constructor in class php
- find days with name between two dates in php
- check if array element is set php
- echo foreach
- create new record via model in laravel
- ajax php show random questions