How to get the php.ini file path in PHP?

1 min read

Sometimes, we need to check the php.ini file location for configuration. In this article, I am sharing with you, how can you easily find the php.ini file location.

You can get location by using php_ini_loaded_file() of PHP.


//print php.ini file location

The output look similar below in the ubuntu system:


Tags : PHP

Related Post