Checking for existence of URL in PHP
<p>If I display a URL link in PHP, is there any way to check for validity after the user click so as to display the user a nice custom message that the URL is broken or something like that?</p>

<p>I do not mean an error 404 page. I guess error 404 is only for internal website pages but not external links. Please correct me if I am wrong.</p>
