I need an efficient way to check if a remote file exists. I was using the code below, however, it seemed to be horribly inefficient. I'm on a shared host and I had my account temporarily suspended due to excessive resource usage. I'm not sure what the problem with the method I was using is but I think it may be that the remote files that I'm checking are fairly large(200MB-1GB). My site gets around 70k hits a day so if it isn't possible to handle that on a shared host I'll just have to do without. Any help is greatly appreciated.