php man page for php_ini_scanned_files

Query: php_ini_scanned_files

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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-config5(1) - suse
php-config(1) - osx
php-config(1) - debian
parse_ini_file(3) - php
php-config(1) - linux
Similar Topics in the Unix Linux Community
How to list top 10 files
empty the dir
feeding filenames to find command
How to check if the file exists in directory?
Linux find help