Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在共享主机上,我注意到 PHP 不包含 bzip2。看来我必须重新编译 PHP 才能使用它。我认为共享主机不允许这样做,那么我的情况或 bzip2 有什么替代方案吗?
如果您的主机允许dl()(我怀疑),您可以动态加载共享扩展。
dl()
清单dl:
dl
disable_functions
safe_mode
enable_dl
您可以做的最好的事情是要求您的主机启用 bzip2 支持,否则寻找替代方案。有很多支持 bzip2 的主机。