There are many php.ini files inside our linux ubuntu server. I want to use ini_get in my php file; so how to tell the script to use the right php.ini file ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check which
php.inifile is the used one looking at the output ofphpinfo().See the image at this blog post, there’s a row saying
Loaded Configuration file. That’s the value you are looking for.From the command line, you can use:
From inside php, there’s the
php_ini_loaded_filefunction