Welcome Guest, Not a member yet? Register   Sign In
How handle the warnings
#2

[eluser]n0xie[/eluser]
An exception is not a warning. Hence you can't 'catch' a warning, since it doesn't stop your script from executing. You could suppress the error (either by prepending it with an @ or set your ERROR LEVEL to something that suppresses the warning).

You could also change the behaviour of PHP when it encounters a warning by setting an error handler


Messages In This Thread
How handle the warnings - by El Forum - 10-19-2010, 01:49 AM
How handle the warnings - by El Forum - 10-19-2010, 02:03 AM
How handle the warnings - by El Forum - 10-19-2010, 03:21 AM
How handle the warnings - by El Forum - 10-21-2010, 03:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB