Gossamer Forum
Home : General : Chit Chat :

Timeout on RSS Feed / PHP script?

Quote Reply
Timeout on RSS Feed / PHP script?
Hi there,
I currently pull the latest forum posts from another website using a combination of their RSS feed and then reformating it on my server using a PHP script.
The results are delivered onto my home page using the following tag:
<%LWP::Simple::get('http://www.mysite.coms/rss_reformat_feed.php')%>

All of this worked very well, until I discovered that the other site has gone down. This causes my home page to be not loaded as the PHP script can nolonger connect to the other site.
This results in my home page not loading.

How can I avoid this in the future? Is there anyway of having some kind of check which would show an alternative tag if my server can't connect to the other site?

Any tips appreciated,

Piers
Subject Author Views Date
Thread Timeout on RSS Feed / PHP script? Piers1 3831 Apr 13, 2005, 1:04 AM
Thread Re: [Piers1] Timeout on RSS Feed / PHP script?
brewt 3663 Apr 13, 2005, 1:16 AM
Post Re: [brewt] Timeout on RSS Feed / PHP script?
Piers1 3616 Apr 14, 2005, 5:52 AM