E-com DevBlog Spider-ball-vacuum

11Jun/083

find your .ini

Sometimes I dabble in php a little so when I run onto something I wanna remember I like to tuck it away somewhere where I'll remember where it is. This handy little snippet will tell you where your php.ini file is loading from. This is especially useful if you are using xampp/wampp/lampp since they tend to have multiple php.ini files and it's anyones guess which one they are using (at least xampp does).

<?php
/*****CHECK TO SEE WHAT PHP.INI FILE IS LOADING*******/
$path = php_ini_loaded_file();
 
if ($path) {
    echo 'path to php.ini: ' . $path;
} else {
    echo 'A php.ini file is not loaded';
}
 
?>

Here's a quick game, who can tell me how many times the word "where" was used in this post (including "somewhere")?

Print This Post Print This Post