For some reason, my local development server is loading with a 20 to 60 second delay on each page. I narrowed it down and discovered that the problem is related to any command that I use that either checks the existence of a remote file (tried file, fopen, etc) or tests the attributes of a remote file (getimagesize).
Is this a PHP or Apache configuration problem? The most annoying part of this is that everything worked fine a few days ago. Since then, all I did was add more posts to my page.
Also, what is the most efficient way to test for the existance of a file? I'm testing remote files that actually exist on my server, but I haven't found a useful way to find the filepath of the file to test it locally.