PHP setting,Display error from on to off,regards.

Status
Not open for further replies.

prabhu3361

New Member
Messages
3
Reaction score
0
Points
0
I have to change the PHP setting ,Display Errors to off,I dad tried by change the .htaccess file by the code
#
# disable display of startup errors
#
php_flag display_startup_errors off
#

#
# disable display of all other errors
#
php_flag display_errors off
#

#
# disable html markup of errors
#
php_flag html_errors off
#

#
# enable logging of errors
#
php_flag log_errors on



but, I got the error report as


"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, no-reply@x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

can u help me to come across this problem?
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
Hello,

You cannot use php_flag or php_value in .htaccess, our setup forbids it. Server settings are system-wide.

To turn off error displays, insert the following in your script near the top (under <?php): error_reporting( E_NONE );
 
Last edited:
Status
Not open for further replies.
Top