2011-08-28 57 views
0

背景使用服务器端包含在HTML文件中 '包括' 命令

我试图使用PHP为HTML文档

代码

<?php 
include ("feed url"); 
?> 

包括一个RSS feed我已经使用ssl命令成功将include标签添加到html文件中,像这样

<!--#include virtual="rssfeed.php" --> 

编辑htaccess文件后可以正常工作。现在的问题是,因为在我的PHP IM使用include(“供稿网址”)我得到这个错误:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in path/rssfeed.php on line 2

Warning: include(feed url) [function.include]: failed to open stream: no suitable wrapper could be found in path/rssfeed.php on line 2

现在要注意的事情我已经尝试设置php_value allow_url_fopen选项1,但没有运气的文件都举行第三第三方托管服务器,所以我没有很多的访问权限,所以他们阻止我把allow_url_fopen设置为ON,原因很明显。所以我的问题是如何解决这个问题?任何方向都会大大增加。

感谢大家的阅读。

+0

我不确定我是否按照你的要求去做。你能详细解释一下吗? – gargantuan

+2

'echo'