1. Open the php.ini file, which is present in the php directory on your system. If you have installed XAMPP, then the location of php.ini file is "C:\xampp\php"
2. Find error_reporting. First one is with the semi-colon ( and second one is without the semi-colon.
3. Change that second one to error_reporting = E_ALL & ~E_NOTICE
4. Set display_errors = off
5. Now go to your Control Panel of the XAMPP and restart the Apache Server.
Simplest solution to this problem is:
1.Go to "administrator" window
2.Under "global configuration" select "server"
3.In "server settings" set "Error Reporting" to "none" or "simple".