2011-12-07 30 views
1

我不知道是否有可能在PHP腳本中覆蓋所有ini_set()!例如,我們可以使用php腳本更改memory_limit的ini_set值。但是我的一個朋友說,在php腳本中不能設置/更改一些ini_set()的值。任何人都可以列出ini_set()函數嗎?什麼是ini_set()函數的列表不能被php腳本覆蓋?

對不起,我英文很差!

回答

2
ini_get_all(null, TRUE); 

例如:

[safe_mode_include_dir] => Array 
    (
     [global_value] => 
     [local_value] => 
     [access] => 4 
    ) 

什麼是訪問= 4?
http://www.php.net/manual/en/configuration.changes.modes.php

 
PHP_INI_USER 1 = Entry can be set in user scripts 
        (like with ini_set()) or in the Windows registry 
PHP_INI_PERDIR 6 = Entry can be set in php.ini, .htaccess or httpd.conf 
PHP_INI_SYSTEM 4 = Entry can be set in php.ini or httpd.conf 
PHP_INI_ALL  7 = Entry can be set anywhere 

要回答你的問題,這些訪問是1或7可以在PHP腳本中設置