我网站页面的PHP错误

时间:2013-08-26 23:09:43

标签: php syntax-error

我在某些网页上遇到了php的问题。我不知道如何解决这个错误。

Warning: set_time_limit() has been disabled for security reasons in /home/sweetsun/public_html/products/coffee/rss.inc on line 8

Warning: fopen() [function.fopen]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/sweetsun/public_html/products/coffee/rss.inc on line 81

Warning: fopen(http://news.google.com/news?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-22,GGLG:en&q=Coffee&output=rss) [function.fopen]: failed to open stream: no suitable wrapper could be found in /home/sweetsun/public_html/products/coffee/rss.inc on line 81
could not open XML input

我在Notepad ++中打开文件来修复代码,我尝试将time_limit设置为0,但是没有用。

格式应如this page

1 个答案:

答案 0 :(得分:0)

配置服务器,因此不允许您调用set_time_limit函数(http://www.php.net/manual/en/ini.core.php#ini.disable-functions

,您无法通过网络(http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen

打开文件

您必须重新配置服务器或迁移到允许此服务器的服务器。