2012-12-08 100 views
1

我正在尝试将博客发布到我的网站。我下载了Simplepie,并按照网站上的指示,但我不断收到这些错误。作为PHP的新手,我不确定他们的意思。任何帮助?发布RSS提要数据时发生PHP错误

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /hermes/bosweb/web177/b1775/ipg.waldropcom/php/test.php on line 7

Warning: require_once(http://www.waldrop.com/php/autoloader.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /hermes/bosweb/web177/b1775/ipg.waldropcom/php/test.php on line 7

Fatal error: require_once() [function.require]: Failed opening required 'http://www.waldrop.com/php/autoloader.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web177/b1775/ipg.waldropcom/php/test.php on line 7

+0

发布您的代码作为您的问题的一部分,我们可能会帮助 - 否则我们就像在雷区的盲人... – nickhar

回答

0

很可能您的应用程序试图包含远程文件,但它失败了。您需要在php.ini中启用allow_url_fopenallow_url_include设置来要求或包含远程文件。

+0

我检查并发现allow_url_fopen设置为...但是,什么都不allow_url_include在所有......我只是将它添加到它....有更安全的方式来使用解析器的RSS内容?我读过fopen,并且包括使你的网站被黑客更容易。谢谢! – deadendstreet