在cpanel上启用allow_url_fopen [英] Enable allow_url_fopen on cpanel

查看:119
本文介绍了在cpanel上启用allow_url_fopen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有cPanel,我想在主机上启用 allow_url_fopen
当我使用此代码时

I have cPanel and I want enable allow_url_fopen on my host. When I use this code

if (ini_get("allow_url_fopen") ==1) {
 echo "allow_url_fopen is ON";
 } else {
  echo "allow_url_fopen is OFF";
}

显示给我


allow_url_fopen已关闭

allow_url_fopen is OFF


推荐答案

如果您的PHP版本是在5.4下,您可以使用以下代码行将 allow_url_fopen 设置为true。

If your PHP version is under 5.4 you can use the following line of code to set allow_url_fopen to true.

ini_set('allow_url_fopen', '1');

这篇关于在cpanel上启用allow_url_fopen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆