php additional .ini files parsed,php_ini_scanned_files Return a list of .ini files parsed from the a...

(PHP 4 >= 4.3.0, PHP 5)

php_ini_scanned_files — Return a list of .ini files parsed from the additional ini dir

说明

string php_ini_scanned_files ( void )

php_ini_scanned_files() returphp.ini. These files are found in a directory defined by the –with-config-file-scan-dir option which is set during compilation.

The returned configuration files also include the path as declared in the –with-config-file-scan-dir option.

返回值

Returns a comma-separated string of .ini files on success. Each comma is followed by a newline. If the directive –with-config-file-scan-dir wasn't set, FALSE is returned. If it was set and the directory was empty, an empty string is returned. If a file is unrecognizable, the file will still make it into the returned string but a PHP error will also result. This PHP error will be seen both at compile time and while using php_ini_scanned_files().

范例

Example #1 A simple example to list the returned ini files

if (strlen($filelist) >0) {$files=explode(',',$filelist);

foreach ($filesas$file) {

echo"

".trim($file) ." ";

}

}

}?>

参见

ini_set() – Sets the value of a configuration option

phpinfo() – Outputs information about PHP’s configuration

php_ini_loaded_file() – Retrieve a path to the loaded php.ini file

—-想了解更多的php相关异常处理怎么解决关注

本文来自网络收集,不代表猴子技术宅立场,如涉及侵权请点击右边联系管理员删除。

如若转载,请注明出处:https://www.ssfiction.com/phpjc/83750.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值