ini_set not working

后端 未结 6 395
北恋
北恋 2021-01-07 20:25

Here is the matter:

ini_set(\'display_errors\', \'1\');
ini_set(\'safe_mode\', \'0\');
ini_set(\'allow_url_fopen\', \'1\');
ini_set(\'allow_url_include\', \'1\');         


        
6条回答
  •  花落未央
    2021-01-07 21:12

    display_errors

    may be set at runtime (with ini_set()), but it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed.

    Use ini_set('display_errors','Off');

    safe_mode

    This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. This directive belongs to PHP_INI_SYSTEM and Cannot be set via ini_set()

    allow_url_include

    Use ini_set('allow_url_include', 'On');

    allow_url_fopen

    This directive belongs to PHP_INI_SYSTEM and Cannot be set via ini_set()

提交回复
热议问题