Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/05/2005, 08:09
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 1 mes
Puntos: 17
Espero no haber "reinventado la rueda" y q no haya uan forma mucho más fácil de hacerlo...

Código PHP:
$fp fopen($pri,"r");
if (!
$fp) {
    die(
"Salto un error $errno");
} else {
    while(!
feof($fp)) {
        
$pag fread($fp,1024);
        
$a strstr($pag,'<title>');
        
$letras strlen(strstr($a,'</title>')) + 7;
        echo 
htmlentities(substr($a,7,strlen($a)-$letras));
    }
}
fclose ($fp);