문제

When my script parses an RSS feed from my local Apache server, it parses fine but when I upload script to the remote hosting server it gives the error:

Warning: Magpie RSS: Failed to fetch (url) and cache is off in magpierss-0.6/rss_fetch.inc

on line 231.

I have searched for possible answers and any suggestions are around enabling and changing cache lifetime. I think that is not the problem - it looks like the problem is with remote hosting Apache server or denied access to my host.

Can anyone help?

도움이 되었습니까?

해결책

check that magpie can open the rss url. Usually with curl being enabled or allow_url_fopen on your server. Also make sure that magpie is able/allowed/permitted to create caching files (if any)

다른 팁

This could be caused by a bad url, the server is busy or not having remote file access allowed in your host.

$errormsg = "Failed to fetch $url "; in source indicative of problem getting to host.

Try checking access from the remote host - if you have ssh & curl enabled just do curl (url)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top