Created
September 29, 2024 20:01
-
-
Save aletoropov/904737689b8a3b56c966dd032ac3577e to your computer and use it in GitHub Desktop.
Сохранение PHP ошибок в файл
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors', 0); | |
ini_set('log_errors', 'on'); | |
ini_set('error_log', __DIR__ . DIRECTORY_SEPARATOR . 'error_log.txt'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment