Logging PHP Errors on VS

Let's now set it up so that PHP errors are output to a special file on the hosting. In case of problems, you can open this file via FTP and check if there are any errors there.

To do this, we will use the setting log_errors. By default, it causes errors to be output to a file named error_log (without an extension). Let's enable this setting:

php<?php
  ini_set('display_errors', 'off');
  ini_set('log_errors', 'on');
  
  echo $test;
?>
Задание 1

Enable error output to a file.

Задание 2

Intentionally create an error. Make sure it appears in the file.