I know you can edit your php.ini and turn of error reporting but is there a way to disable that inside of your script, that resides on a users server?
Turn of Error Display
Started by Crane, Jun 20 2007 06:32 AM
5 replies to this topic
#1
Posted 20 June 2007 - 06:32 AM
|
|
|
#2
Posted 20 June 2007 - 03:00 PM
You can use the ini_set ( ) function.
However as noted by php.net
However as noted by php.net
'php.net said:
This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet).
#3
Posted 20 June 2007 - 08:33 PM
You can use error_reporting to change the levels of errors to show - but also disable all of them.
Example:
Example:
// Turn error reporting off error_reporting(0);
#4
Posted 23 June 2007 - 06:41 PM
v0id said:
You can use error_reporting to change the levels of errors to show - but also disable all of them.
Example:
Example:
// Turn error reporting off error_reporting(0);
I have used this before - it works. Have you ever noticed that the zero (0) option isn't listed on the function page in php.net?
#5
Posted 23 June 2007 - 11:29 PM
Chan said:
Have you ever noticed that the zero (0) option isn't listed on the function page in php.net?
I think its because its not a real "error level", it's just a value to disable all of the error reporting.
#6
Posted 24 June 2007 - 02:43 PM
I think you may even be able to do this using a .htaccess file.


Sign In
Create Account


Back to top









