Answers for "where can i find php.ini"

PHP
4

how to find php.ini

php -i | grep "Loaded Configuration File"
Posted by: Guest on January-06-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

Code answers related to "where can i find php.ini"

Browse Popular Code Answers by Language