I need to write some code that will redirect a user to a particular page. I know how to do that, but there's a twist. Here's the order of things:
1) PHP script "pings" a URL to make sure it is available
2) If so, it will redirect to that URL
3) If not, it will redirect to another URL
I wasn't able to find anything about "ping" in the PHP manual. Can anyone help? Thanks!