OK I am trying to make a proigram where the user enters a url, and using fsockopen, it checks to see if the the url exists. Now with this code, it gives me the answer I want if it does exist, but if I enter a url that does not exist, it gives me a heap of errors. Any help on what I am doing...