Default php.ini macOs Catalina

我的梦境 提交于 2021-02-08 15:11:33

问题


I would like to know which php.ini is the default one used by PHP ?

Because if you write locate php.ini there a 3 files and all of these files have an /etc as parent directory, but not the same parent directory of /etc, so I don't know which one is the default one used by PHP. Terminal output


回答1:


Type in your console:

php -i |grep php\.ini



回答2:


The fastest way ist to check out the ini path on the phpinfo() Call

Simply edit your index.php

<?php echo phpinfo(); ?>



回答3:


On macOS Catalina

type

  1. localhost/phpmyadmin into browser
  2. click PHPInfo on menu
  3. ctrl+f "php.ini"


来源:https://stackoverflow.com/questions/59282952/default-php-ini-macos-catalina

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!