phpmyadmin中的$ GLOBALS ['cfg']在哪里 [英] Where is $GLOBALS['cfg'] in phpmyadmin
问题描述
我在phpmyadmin下的phpinfo.php文件中找到了配置文件:
I found in phpinfo.php file under phpmyadmin, there is config setting with this:
if ($GLOBALS['cfg']['ShowPhpInfo']) {
phpinfo();
}
我想知道在哪里可以设置$ GLOBALS ['cfg'] ['ShowPhpInfo']配置?当然,我可以对这个数组值进行硬编码,但是我想知道这样做的标准"方法.
I want to know where I can setup the $GLOBALS['cfg']['ShowPhpInfo'] config? Of course, I can hard code this array value, but I want to know the "standard" way for doing this.
推荐答案
It's set in config.inc.php
, see for instance https://docs.phpmyadmin.net/en/latest/config.html#cfg_ShowPhpInfo.
您可以添加$cfg['ShowPhpInfo'] = true;
之类的行来启用此功能.
You can add a line like $cfg['ShowPhpInfo'] = true;
to enable this feature.
请注意,由于担心泄漏太多服务器信息,此功能已在4.6.4和4.6.6版本之间临时删除.您可以看到 https://github.com/phpmyadmin/phpmyadmin/issues/12495 进行更多讨论.
Note that this feature had been temporarily removed between versions 4.6.4 and 4.6.6 due to concerns about leaking too much server information. You can see https://github.com/phpmyadmin/phpmyadmin/issues/12495 for some more discussion.
这篇关于phpmyadmin中的$ GLOBALS ['cfg']在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!