How to get php.ini file path?

Admin   PHP   257  2020-08-04 13:33:37

You can get location path of php.ini file using php_ini_loaded_file() of PHP. Sometimes we require to get php.ini file path. So, if you need to get path of php confogration file then you can get following way:



You can find output something like bellow if you are use ubuntu system: