Hi, i am working on my website and would like to hide the errors, warnings and notices. how is this done?
thanks, dandono
Printable View
Hi, i am working on my website and would like to hide the errors, warnings and notices. how is this done?
thanks, dandono
this link should solve it:
http://us2.php.net/error_reporting
thanks. all i got to do is put this on first line or where i want it to stop reporting errors this:
thanks.PHP Code:error_reporting(0);
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 ;)
for this i just do $whattoread = @fopen($filename, "r") or die("");
i dunno if it worx but its good for me
die() exits the script so it is not the best for forms.
o ok