Page 1 of 1

hide errors, warning and notification from php page

Posted: Thu May 05, 2011 7:56 am
by bluestar
how to hide error, warning and notice in php page....
i tried "error_reporting(E_ALL ^ E_NOTICE);" and "error_reporting(0);" putting them on the 1st line after php opening ie(<?php) but they wont work
any suggestion....:)

Re: hide errors, warning and notification from php page

Posted: Thu May 05, 2011 11:09 am
by McInfo
Turn display_errors off. However, most errors can be prevented; and it is better to prevent errors than to conceal them. On a development server, you should keep display_errors enabled.