(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