Skip to content

Glossary: PHP Basics

error_log()

Also written: error_log

A function that writes a message to PHP's error log, used on a live site so details are kept for you instead of shown to visitors. With `php -S`, the log is the server's terminal window.

Where the book teaches it

Related terms

error_reporting() / display_errorsfatal error