Skip to content

Displaying PHP errors in web hosting

By default, PHP errormessages are hidden. There are two easy ways to display these errormessages. In these examples you add a .user.ini-file to the servers rootfolder.

Saving errormessages to a log-file:

log_errors = 1 error_log = /home/ID/error.log

Printing errorlog to browser:

display_errors = 1

Was this article helpful?