ini_set not working

后端 未结 6 382
北恋
北恋 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 20:58

    Have you tried putting boolean values instead of 0 or 1?

    ini_set('display_errors', true);
    ini_set('safe_mode', false);
    ini_set('allow_url_fopen', true);
    ini_set('allow_url_include', true);
    print_r(ini_get_all());
    

    Or try this:

    ini_set('allow_url_include', 'on');
    

提交回复
热议问题