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

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

WBOY
Release: 2016-06-23 14:20:11
Original
1035 people have browsed it

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

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

本地是XAMPP  服务器是LNMP


回复讨论(解决方案)

phpinfo 看看是否被禁用了

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

phpinfo 看看是否被禁用了

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template