Blog

como manejar los warnings impresos

if (getenv(‘PHP_DEBUG’)==’1′)
{
error_reporting( E_ERROR | E_USER_ERROR );
ini_set( ‘display_errors’, true );
}
else
{
error_reporting( E_ERROR | E_USER_ERROR );
ini_set( ‘display_errors’, false );
}

And then on the development server you could have the following line in your .htaccess or VirtualHost directive:

SetEnv PHP_DEBUG=1