HTACCESS code to display errors(i.e Warnings & Fatal Errors) while running a PHP file in server is shown below.
php_flag display_errors off
HTACCESS code to log errors in Log file is php_flag log_errors. To off the Log files in the server we need to write the HTACCESS code as shown below.
php_flag log_errors off
To off the Errors displayed & also to OFF the log files the following HTACCESS code is used.
Options +FollowSymlinks
php_flag display_errors off
php_flag log_errors off
No comments:
Post a Comment