douchuopiao9002 2013-04-28 19:40
浏览 1867

警告:get_headers()此函数只能用于URL中的URL

I want to check if an external url exists and I've tried using different functions. Most functions use get_headers() function and this always shows me the warning "Warning: get_headers () [function.get-headers]: This function May only be used against URLs in / myhosting/..." . What could be the cause that this does not work? Localhost, Mac with MAMP

  • 写回答

1条回答 默认 最新

  • duan5362 2013-04-28 19:46
    关注

    Check the following setting in your php.ini file. It should be On.

    allow_url_fopen = On; (the php doc : allow_url_fopen)

    You can look at this question on how to edit your php.ini

    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料