douyuanliao8815 2017-08-14 08:53
浏览 223

通过allow_url_fopen = 0 in在服务器配置中禁用http://包装器

The "allow_url_fopen" property of the php.ini file is "On". But in the "copy ()" function I get this error.

"[14-Aug-2017 08:42:29 UTC] PHP Warning: copy(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/timforkl/public_html/test.php on line 3 [14-Aug-2017 08:42:29 UTC] PHP Warning: copy(http://mitforklift.com/dealers/shared/images/imglib/ESDN3-34SHEETPRODUCT-PAGE-01-S.jpg): failed to open stream: no suitable wrapper could be found in /home/timforkl/public_html/test.php on line 3 "

test.php ►

if(copy("http://mitforklift.com/dealers/shared/images/imglib/ESDN3-34SHEETPRODUCT-PAGE-01-S.jpg","gok.jpg")){
echo 'sa';
}
else{
echo'as'; }
  • 写回答

1条回答 默认 最新

  • duangewu5234 2018-03-23 08:02
    关注

    You have to restart your server machine or services in order to reload php.ini file.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度