Answers for "find which php.ini is used"

PHP
4

how to find php.ini

php -i | grep "Loaded Configuration File"
Posted by: Guest on January-06-2021
0

where can I find php --ini

php --ini
Posted by: Guest on May-07-2021
2

find which php.ini is used

for cmd : php --ini
  
for code : use php_ini_loaded_file() as :=

$inipath = php_ini_loaded_file();
if ($inipath) {
    echo 'Loaded php.ini: ' . $inipath;
} else {
    echo 'A php.ini file is not loaded';
}
Posted by: Guest on July-07-2020
1

To find out where your php.ini is located

run: php --ini
Posted by: Guest on June-08-2020
0

find php ini

1. Create test.php file with the following content

2. <?php phpinfo(); ?>

3. Put it in the root of the site (or in a public folder)

4. Open the file on your browser "domaine.com/test.php"

4. Look for "Loaded Configuration File"
Posted by: Guest on June-09-2021

Browse Popular Code Answers by Language