Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

Display All PHP Errors

Display All PHP Errors

Sometime due to our lampp / xampp setup, we are not able to see php error it may be Waring or Fetal Error but fixing bugs we need to know all warnings and error details. In this post I am going to share a script so using this script we will be able to see those warning and errors.

PHP CODE TO DISPLAY ALL ERRORS

Add these lines to your  your php file  to see Warnings and Error

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1); 
error_reporting(E_ALL);

Please comment if you have and query or suggestion

5 1 vote
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
OMGUbuntu

You Save my whole day, I google a lot but this solve my problem to debugg the error ..

Do you have any Query / Suggestion