LexiConn Knowledgebase

Knowledgebase Home | Favorites Knowledgebase Home | Favorites
Search the Knowledgebase Browse by Category
Configuring PHP to display errors and warnings on the webpage
Article Details

Last Updated
11th of July, 2008

User Opinions (6 votes)
83% thumbs up 16% thumbs down

How would you rate this answer?
Not helpful

By default, PHP errors are logged to a log file instead of to the screen. This is in place as a security measure, as the errors could potentially advise hackers of certain things regarding your account, including file paths. If you would prefer to have the PHP errors displayed on the screen (in addition to the log file), which would allow for easier debugging, then all you need to do is create/edit a .htaccess file. The .htaccess file is a text file that goes in your www folder. You would add the following line of text to the file:

php_flag display_errors on

If you would prefer that we do this for you, just send us an email and we'll take care of it for you. Note that this only works for PHP versions 4.4 or 5.x.

Related Articles
No attachments were found.

Powered by Interspire Knowledge Manager Knowledgebase Software