Page 1 of 1
help with displaying errors
Posted: Sat Jul 17, 2004 5:50 pm
by MonkeyManx
Is there any way to tell the php script not to show errors?
Posted: Sat Jul 17, 2004 5:59 pm
by JAM
Do you mean something like
http://se.php.net/error_reporting and/or
http://se.php.net/manual/en/ref.errorfunc.php ?
Another tip is the following:
Code: Select all
<?php
$foo = @fopen(slapp_kitty);
?>
Note the @ before the function.
Do however read up on errorhandling before using this or changing any error settings. Errors are there for a reason and shouldn't really be ignored as a "quick and swift" solution to any problem. Like curing the symptom instead of the actual disease...
(Ignore the spelling, it's late)
Posted: Sat Jul 17, 2004 6:33 pm
by kettle_drum
You should be coding to check and test against errors so that they dont appear, not just hiding them.
Posted: Sat Jul 17, 2004 7:54 pm
by John Cartwright
very true when develepping you should have E_ALL and when showing the public remove errors