Php – Turn php error reporting off in xampp


I just installed xampp, getting errors all over the place. Want to get rid of error handling. It's only annoying errors to do with my variables.

I'm not sure where to find php.ini, it doesn't exist in my C:\xampp\apache

Best Solution

Inside your php.ini make sure that you have display_errors to Off. From what I understand if you set display_errors to Off then the error_reporting directive doesn't need to change.


display_errors = Off