Hello, I have a script running on a very high traffic website. The script reads an RSS feed from a remote site and displays on the high traffic site. Right now the site that is syndicating, keeps failing, thus hanging my script. Is there a way for my script to tell if its hanging, and then display an alternate page? e.x. if RSS fails, display static content rather than 3rd party syndicated. Thanks!
It depends what method you are using to grab the content. You should be able to adjust it so that it uses a timeout parameter and then if that limit is reached display the alternate page. You would need to show us how you are getting the data before we can tell you the best way forward.