Simulate a simple "warning" in PHP -


how can simulate or force warning in php? there simple , common way this? thank you!

i need example script, because webserver doesn't send output, if there warning @ script. error_handling(e_all) displays warning regular output, error_handling(0) hides not warning, hides regular output ...?

<?php $test=2; if ($test>1) { trigger_error("a custom error has been triggered"); } ?> 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -