How to supress notices from php

Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to supress notices from php

Post by Saman » Mon Jun 28, 2010 7:07 pm

Edit php.ini and find error_reporting. Set it as below.

Code: Select all

error_reporting = E_ERROR
This will suppress all warnings & notices like "Notice: Use of undefined constant...."
Post Reply

Return to “PHP & MySQL”