I am editing a .htaccess file to do some overwriting in the php.ini file (I do not have access to it). So far I have added:
php_value max_execution_time 600 php_value error_reporting E_WARNING php_value log_errors Off
The application that I am editing for (vTiger CRM) recommends setting the "error_reporting" parameter to "E_WARNING" and "E_NOTICE". When I insert this value, I get an error of 500. How to add the correct error_reporting values? Thank.
Using constants, such as E_WARNING, does not matter outside of PHP - and when you write a file .htaccess, you are outside of PHP. (e.g. documentationerror_reporting )
E_WARNING
.htaccess
error_reporting
, , :
, , - PHP script .
:
<?php var_dump(E_ALL & ~E_NOTICE);
int 30711
( , , ^^)
php .htaccess. . , .
- , , ini_set() php script, php-.
ini_set('max_execution_time', '600'); ini_set('error_reporting', E_WARNING); ini_set('log_errors', '0');
phpite ini.list.php , , ini php.ini. ( , ). 3 , , .
Source: https://habr.com/ru/post/1733779/More articles:Adding icons in the headers for sorting acts strange on Win7 x64 in C # net 3.5 - c #Redirection to another domain, but the same server - .netHow to solve "it is impossible to call a method ... until undefined" in closing Google (creating a simple toolbar)? - google-closureОбтекание веб-приложения в качестве приложения для iPhone? - iphoneAdd-ons or libraries for adding user comment functions to an existing ASP.NET page? - asp.netHow to declare parameters (variables) in a partial view? - asp.net-mvcSetting up Sharethis - javaIs there a way to get the order in which the OOP method is called? - oopDetecting end of function chain? - javascriptWhy is it necessary to check the cast time when uncorking? - c #All Articles