Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/10/2007, 16:06
Avatar de Marvin
Marvin
Colaborador
 
Fecha de Ingreso: febrero-2005
Ubicación: global $Chile->Santiago;
Mensajes: 1.991
Antigüedad: 20 años
Puntos: 81
Re: Problema Condicional con Popup

Probaste poniendo toda la ruta en $filename ?

Usa esta funcion para buscar si el archivo existe en la ruta completa de la url:

Mensaje en el manual de php.net -> file_exists()
Cita:
Iniciado por ktcb123 at hotmail dot com
Código PHP:
<?php
    
function url_exists($url){
        
$url str_replace("http://"""$url);
        if (
strstr($url"/")) {
            
$url explode("/"$url2);
            
$url[1] = "/".$url[1];
        } else {
            
$url = array($url"/");
        }

        
$fh fsockopen($url[0], 80);
        if (
$fh) {
            
fputs($fh,"GET ".$url[1]." HTTP/1.1\nHost:".$url[0]."\n\n");
            if (
fread($fh22) == "HTTP/1.1 404 Not Found") { return FALSE; }
            else { return 
TRUE;    }

        } else { return 
FALSE;}
    }
?>
Suerte y Bienvenid@ a FDW!
__________________
El que dice "Solo sé que nada sé", esta asumiendo que sabe algo.
Lea las FAQ's!