Home  >  Article  >  Backend Development  >  为什么服务器上get_loaded_extensions()是空的?

为什么服务器上get_loaded_extensions()是空的?

WBOY
WBOYOriginal
2016-06-23 14:20:11967browse

$a = get_loaded_extensions();
foreach($a as $b)
{
echo $b.'
';
}

同样的这段代码,在本地里有东西,上传到服务器上就是空的,怎么解决,求指教。

本地是XAMPP  服务器是LNMP


回复讨论(解决方案)

phpinfo 看看是否被禁用了

难道是你nginx服务器的原因,检查下phpinfo.php是否正常运行。

phpinfo 看看是否被禁用了

十分感谢!phpinfo里搜索了一下 发现get_loaded_extensions在disable_functions里 配置文件里去掉之后就能用了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn