php包含到外部URL [英] php include to external url
问题描述
我目前正在尝试使用php函数'include'来包含外部URL。这样,每当网页更新时,它都会自动更新我的网页。我遇到的麻烦是我一直收到错误说下面的内容......
I am currently trying to use the php function 'include' to include an external url. This is so that whenever the webpage is updated it will automatically update mine. The trouble I'm having however is that I keep getting an error saying the following...
警告:require()[function.require]:http://在服务器配置中禁用了包装器,在第48行的C:\ wamp \ www \starterpack \starterpack2 \ header.php中使用allow_url_include = 0
Warning: require() [function.require]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\wamp\www\starterpack\starterpack2\header.php on line 48
I试图找到一种方法来修复此错误或找到解决方法,但找不到一个。有没有人有任何想法?
I have tried to find a way to fix this error or find a way around it but cannot find one. Does anyone have any ideas?
PS我正在使用wampserver构建网站,wampserver的权限是否会导致此错误?
P.S I am building the site using wampserver, could permissions of the wampserver be causing this error?
推荐答案
查看你的php.ini并确保allow_url_include设置为1.重启HTTPD,完成。
Look at your php.ini and make sure allow_url_include is set to 1. Restart HTTPD, done.
这篇关于php包含到外部URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!