WordPress.org

Ready to get started?Download WordPress

Forums

Hide SQL Errors? (2 posts)

  1. moogie
    Member
    Posted 8 years ago #

    In the event of an SQL error, is it possible to hide the error details from public view? Specifically, I would like to exclude the database name from the error, or the detailed error message all together?

    Thanks for any advice.

  2. pizdin_dim
    Member
    Posted 8 years ago #

    Include these two lines at the bottom of your ".htaccess" file:


    php_flag display_errors off
    php_flag display_startup_errors off

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags