Jump to content

Dominic_108

New Members
  • Posts

    1
  • Joined

  • Last visited

Dominic_108's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I know it's old, but I could not myself from making a comment. To say that error_log and trigger_error have completely different purposes and that the question made no sense is what made no sense. The question made perfect sense. Both uses the php ini directive error_log that sets a log file location, defaulting to the web server log if no value is set in error_log. So, they certainly have a related purpose. One difference is that the error_log function will perform its duties regardless of the value set in the log_errors ini setting. It does not raise a PHP error, so it does not have a severity level. So, you have more control with trigger_error, but one might want to bypass this control and directly send to the log_error destination without raising a PHP error or warning, etc.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.