No entiendo bien la pregunta, podrías detallarla? Porque ayer preguntaste otra cosa y más o menos era la misma rta:
http://www.forosdelweb.com/f13/valid...arpeta-643554/
Si te referís a que suceda algo cuando se produce un error 404, podrías usar ajax para eso, con algo como esto:
Código PHP:
xmlhttp.open("HEAD", "/faq/index.html",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
if (xmlhttp.status==200) alert("URL Exists!")
else if (xmlhttp.status==404) alert("URL doesn't exist!")
else alert("Status is "+xmlhttp.status)
}
}
xmlhttp.send(null)
(código tomado de:
http://www.jibbering.com/2002/4/httprequest.html)