dqknycyt92288 2010-04-17 17:48
浏览 76
已采纳

PHP:如何理解来自ini_get_all函数的访问的位掩码值

i'm start to use ini_get_all function to retrieve all configuration option on a shared host server. in the end i got this chunk of array :

[allow_call_time_pass_reference] => Array
    (
        [global_value] => 1
        [local_value] => 1
        [access] => 6
    )

[allow_url_fopen] => Array
    (
        [global_value] => 1
        [local_value] => 1
        [access] => 4
    )

The PHP manual just give descripstion :

It's possible for a directive to have multiple access levels, which is why access shows the appropriate bitmask values.

so, can anybody explain about 'access' ? ans how to understand its bitmask values ?

  • 写回答

2条回答 默认 最新

  • donglei1699 2010-04-17 17:53
    关注

    Would you have read a little further in the "Return Value" section, you'd have found the link to the change modes and what they mean:

    • 1: PHP_INI_USER: Entry can be set in user scripts (like with ini_set()) or in the Windows registry
    • 4: PHP_INI_SYSTEM: Entry can be set in php.ini or httpd.conf
    • 6: PHP_INI_PERDIR: Entry can be set in php.ini, .htaccess or httpd.conf
    • 7: PHP_INI_ALL: Entry can be set anywhere
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line