Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Как включить вывод ошибок PHP


Включить вывод ошибок PHP можно несколькими способами: через панель управления, в php.ini, в .htaccess или непосредственно в коде.

 

Способ 1

Проще всего сделать это в коде.

В index.php или в admin/index.php (если ошибка в админке) сразу после <?php пишем:           

ini_set('display_errors', 1);

 

Способ 2

Добавьте в конец файла .htaccess в корне сайта строчку

php_flag display_errors on

 

Обновляем страницу, должен появиться текст ошибки. После исправления ошибки вывод ошибок нужно отключить.

 


Comments

There are no comments to display.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.