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
You Save my whole day, I google a lot but this solve my problem to debugg the error ..