help with displaying errors
Moderator: General Moderators
-
MonkeyManx
- Forum Newbie
- Posts: 4
- Joined: Tue Jul 09, 2002 9:02 pm
- Location: Phoenix, Arizona
- Contact:
help with displaying errors
Is there any way to tell the php script not to show errors?
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:
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)
Another tip is the following:
Code: Select all
<?php
$foo = @fopen(slapp_kitty);
?>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)
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: