php вывод ошибок

  1. В самом скипте
error_reporting(E_ALL);
 ini_set('display_errors','On');
ini_set("error_log", __DIR__."/php-error.log");

2. В настройках php.ini

error_reporting = E_ALL
display_errors = On
display_startup_errors = On
// логировать ошибки
log_errors = On
error_log = php_errors.log

3. В .htaccess

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag  log_errors on
php_value error_reporting E_ALL  
php_value error_log  PHP_errors.log

Leave a comment

Your email address will not be published.


*