|
-
Jun 27th, 2005, 01:00 PM
#1
Thread Starter
Hyperactive Member
Hide errors...
Hi, i am working on my website and would like to hide the errors, warnings and notices. how is this done?
thanks, dandono
If there is only one perfect person in the universe, does that make them imperfect?
-
Jun 27th, 2005, 01:07 PM
#2
Fanatic Member
-
Jun 27th, 2005, 01:17 PM
#3
Thread Starter
Hyperactive Member
Re: Hide errors...
thanks. all i got to do is put this on first line or where i want it to stop reporting errors this:
PHP Code:
error_reporting(0);
thanks.
If there is only one perfect person in the universe, does that make them imperfect?
-
Jun 27th, 2005, 10:44 PM
#4
Re: Hide errors...
You can also modify the php.ini file to have all errors put in a file. This way you can still debug your scripts, however, the errors will not be displayed in the pages. Also, check the link in my signature to the error handling class, it enables you to specify a standard error handling function, which, you could use to display a standard error message to the user.
P.s: Link for ALL http://www.vbforums.com/showthread.php?t=346624
Last edited by visualAd; Jun 27th, 2005 at 10:50 PM.
-
Jul 21st, 2005, 01:29 AM
#5
Hyperactive Member
Re: Hide errors...
for this i just do $whattoread = @fopen($filename, "r") or die("");
i dunno if it worx but its good for me
-
Sep 2nd, 2005, 03:47 PM
#6
Thread Starter
Hyperactive Member
Re: Hide errors...
die() exits the script so it is not the best for forms.
If there is only one perfect person in the universe, does that make them imperfect?
-
Sep 5th, 2005, 07:40 PM
#7
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|