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
Post a Comment