Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find
ADD COMMENT
Topic
Name
3+1 =