Enable allow_url_fopen on cpanel

我怕爱的太早我们不能终老 提交于 2019-12-12 01:38:33

问题


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";
}

Show me

allow_url_fopen is OFF


回答1:


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');


来源:https://stackoverflow.com/questions/42605197/enable-allow-url-fopen-on-cpanel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!