You could use fopen() to retreive the HTML of the page, then parse it
taking your best guess at a 404 message. Not very robust though.
It'd be much better to open up a socket to the site itself, then issue a
HEAD /page here request. If the page is not found you'll have a line
in the return
I have a database with lots of urls stored
I would like to build a script the retrieves them ... then somehow checks
each one to see if the link produces a error 404 and is no longer good,
then ideally write a file of bad links for me
this seems like it would be possible with PHP, could