I have mysql table hravaj00_dily and there are columns part_id, img150, imgfull. In img150 and imgfull are stored urls to images. This table is updated from xml feed btw.
Is there any PHP solution to go through column img150 (or imgfull), check if url exists (404 error) and delete from database all these rows with non existing urls..?
I have read about this function below which checks http header of url. Is this somehow useful? I have no idea how exactly to use it.
function file_external_exists($url)
{
$headers = @get_headers($url);
if(preg_match("|200|",$headers[0]))
return(true);
else return(false);
}