title: How can one check to see if a remote file exists using PHP?
body: <p>The best I could find, an <code>if</code> <code>fclose</code> <code>fopen</code> type thing, makes the page load really slowly. </p>
  
  <p>Basically what I'm trying to do is the following: I have a list of websites, and I want to display their favicons next to them. However, if a site doesn't have one, I'd like to replace it with another image rather than display a broken image.</p>