Php – Turn php error reporting off in xampp

php

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.

Example:

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = Off