I have a databse with links for my web-directory, currently it holds about 300 urls.
Unfortunately some of theese links dies out, either because the site gets deleted or some other reason.
At the moment i have to manually go and delete the ones i find not working, but the job is getting harder and harder as more links are added.
Therefor i have tried to make a script that will check the url and delete it if a connection cannot be made to the url.
it is something like this:
... loop start ...
if (!@fopen($url,"r")) {
mysql_query("delete.......");
}
... loop end ...
But this takes QUITE a while. So i was wondering if there is a better/quicker way to check my db
regards
Simon