Skip to content

Instantly share code, notes, and snippets.

@hsleonis
Created February 2, 2016 11:25
Show Gist options
  • Save hsleonis/16514795a1895f531bc5 to your computer and use it in GitHub Desktop.
Save hsleonis/16514795a1895f531bc5 to your computer and use it in GitHub Desktop.
Remove PHP Strict Standards message
<?php
/*
Using php.ini file:
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED
Warning! : This may cause 500 internal error on some server, contact provider
*/
/*
Using php
*/
error_reporting(0);
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED);
ini_set('display_errors','Off');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment