Hi, I am trying to gather data on my server using rss feed from another server. When I try to download the rss feed on my Linux box I am getting the following error
PHP Warning: DOMDocument::load(http://www.foo.com/rssfeed?feed_id=198) [<a href='domdocument.load'>domdocument.load</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found\r\n in /var/www/foo/webroot/rssdata.php on line 14
[error] [client xx.xx.xx.xx] PHP Warning: DOMDocument::load() [<a href='domdocument.load'>domdocument.load</a>]: I/O warning : failed to load external entity "http://www.foo.com/rssfeed?feed_id=198" in /var/www/foo/webroot/rssdata.php on line 14
My code looks something like this.
My php code looks something like this.
$doc = new DOMDocument();
$doc->load('http://www.foo.com/rssfeed?feed_id=198');
..... // use the doc to get specific info.
The same code was working on my windows VISTA WAMP setup. I thought it is something to do with directory permission. I tried changing the directory permissions (in fact I gave '775' permission to the directory) but it did not work. Any help is greatly appreciated.