Is there a way of hiding all warnings that come up on your browser? I have my project demonstration in an hour and i NEED to get rid of them!!!!
Thanks
Hiding warnings?
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
On the very top line in a <?php ?> block add
Then after the demonstration go fix your code 
Code: Select all
error_reporting(0);Also worth noting... ini_set()phpScott wrote:if you have access to the php.ini you can alway turn the error reporting off. Then restart your server.
To only turn warnings off, but leave error-messages
just like the ultimate guide says.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);