Ver Mensaje Individual
  #7 (permalink)  
Antiguo 13/11/2008, 07:27
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: Mostrar otra imagen cuando la original no exista

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==200alert("URL Exists!")
    else if (
xmlhttp.status==404alert("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)