I would like to create a batch script, to go through 20,000 links in a DB, and weed out all the 404s and such. How would I get the HTTP status code for a remote url?
You can use PEAR's HTTP::head function. http://pear.php.net/manual/en/package.http.http.head.php