php_ini_scanned_files(3) php man page | unix.com

Man Page: php_ini_scanned_files

Operating Environment: php

Section: 3

PHP_INI_SCANNED_FILES(3)						 1						  PHP_INI_SCANNED_FILES(3)

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

SYNOPSIS
string php_ini_scanned_files (void )
DESCRIPTION
php_ini_scanned_files(3) returns a comma-separated list of configuration files parsed after php.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.
RETURN VALUES
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(3).
EXAMPLES
Example #1 A simple example to list the returned ini files <?php if ($filelist = php_ini_scanned_files()) { if (strlen($filelist) > 0) { $files = explode(',', $filelist); foreach ($files as $file) { echo "<li>" . trim($file) . "</li> "; } } } ?>
SEE ALSO
ini_set(3), phpinfo(3), php_ini_loaded_file(3). PHP Documentation Group PHP_INI_SCANNED_FILES(3)
Related Man Pages
php-config(1) - mojave
php-config5(1) - linux
ini_get(3) - php
parse_ini_file(3) - php
parse_ini_string(3) - php
Similar Topics in the Unix Linux Community
How to list top 10 files
Trouble with sed and ini file parsing
unix script with SQL statement problem
How to list the files having particular string in it ?
Linux find help