Home > PHP > Function > PHP Options/Info > php_ini_scanned_files()

php_ini_scanned_files()

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

Syntax

string php_ini_scanned_files ()

Arguments

-

Description

php_ini_scanned_files() 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-diroption which is set during compilation.

Version

PHP 4.3.0, 5

Return value

Returns a comma-separated string of.ini files on success. Each comma is followed by a newline. If the directive --with-config-file-scan-dirwasn'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().