How to get php.ini file path?

Today now in this post i will show you how to get php.ini file path. we can get the location path of php.ini file by using php_ini_loaded_file() of PHP. Sometimes we need to get the php.ini file path. So, if we need to get the path of php configuration file then we can get the following way:



We can find output something as like bellow if we are use ubuntu system:


Read Also : How to convert Object into Array in PHP?

Thanks for read. I hope it help you. For more you can follow us on facebook.


About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →