i got this error when i try to display rss feed from google the link is http://egyptbusinessguide.com/acne/ Warning: fopen(http://news.google.com/news?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-22,GGLG:en&q=Acne&output=rss) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in /home/bemoi/egyptbusinessguide.com/acne/inc/rss.inc on line 81 could not open XML input i don't understand, 5 minutes ago it was working fine, now, it don't, can anyone tell me what to do? by the way, i dont have access to php.ini
nop, cause when i can access it from http://news.google.com/news?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-22,GGLG:en&q=Acne&output=rss
now i tried it locally and it worked, i guess that error is a server thingy not a script error, but i cant figure it out
HTTP/1.0 503 Service Unavailable Code (markup): This line tells that the problem is on server you trying to connect to.
Get with your host. They may have disallowed the use of fopen. Some hosts do as it;s considered a security risk by some.
+1 You'll most likely find that if you keep trying the fopen intermittently, it will eventually work. cURL might be better for this, but you'll get the same error. Just might be easier to check for a 503 and keep trying til you get some content.
From the look of that error the problem was with the server you are trying to connect to, perhaps a problem with the connection from your host to that site. Also, it doesn't sound like your host has disabled that function or you would have gotten an error saying so. Beyond that, I definitely recommend the use of CURL instead of fopen when accessing remote URL's. Good luck!
Hi , I think google blocked your server's IP address ... as your site is hitting google badly Thanks, >Harry
i think the problem is from the server side, not google's side, as i tried it on another server and it worked like a charm, the funny thing is thats smetimes it shows and sometimes it doesn't, ill email dreamhost now and let you know the news