Home · Latest · Trends  /  PHP
5

Log and display all errors, warnings and notices

rated 5 times [  5] [ 0]  / comments: 0 / hits: 963  / 2 years ago, sat, sep 16, 2017, 16:52:35
Log and display all errors, warnings and notices into a file
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set("error_log", "myerrors.log");
error_reporting(E_ALL);
More From » PHP
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Snippets
Convert HTML to formatted plain text with PHP
2 years ago, sat, sep 30, 2017
Sponsor
Posted
giles

giles

Member since Sep 16, 2017
Total Code Snippets: 2
Total Comments: 0
Location: n/a
Following
User not following anyone yet.