You can test the code at [a href=\"http://www.becklit.org/linkchecker.php\" target=\"_blank\"]http://www.becklit.org/linkchecker.php[/a] The reason I thought it was a timeout error is because if you search a small amount of data, say 25 entries, then it works. But anymore of that will cause the error. EDIT: In fact now it doesn't seem to work at all, so the problem is intermittent. I would appreciate it if someone could take a look at my code, the meat of it is not very long: the code can be seen at [a href=\"http://www.becklit.org/linkchecker.txt\" target=\"_blank\"]http://www.becklit.org/linkchecker.txt[/a]