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
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