I want to return the value of open_basedir in a php script.. how can I do it?
If value is blank it should echo that is blank..
Thanks!
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.
open_basediris a setting that’s configured inphp.iniSo, you can get its current value with
ini_get:For example, if `open_basedir` is defined this way in my `php.ini` file :
Then, the following portion of code :
Gets me this output :