Checking redirect in PHP before actioning
<p>Is there a way to check if the server responds with an error code before sending a user there?</p>

<p>Currently, I am redirecting based on user editable input from the backend (client request, so they can print their own domain, but send people elsewhere), but I want to check if the URL will actually respond, and if not send them to our home page with a little message.</p>
