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

Leave a Reply

avatar

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

  Subscribe  
Notify of
Do you have any Query / Suggestion