Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/06/2005, 03:39
Spyn_ET
 
Fecha de Ingreso: diciembre-2003
Mensajes: 218
Antigüedad: 20 años, 4 meses
Puntos: 0
Este ejemplo creo q te ira bien, un saludo.

Código PHP:
<form method="post">
<input type="text" name="url" value="http://">
<input type="Submit" value="Ver código">
</form>
<?
if ($_POST['url']== "http://"){
    echo 
"Por favor rellena la url";
}else if (
$_POST['url']==""){
    echo 
"Debes incluir el http://";
}else{
    
$fichero=fopen($_POST['url'],'r');
    if (
$fichero)
    {
    
$string ="";
    while (!
feof($fichero)){
            
$string .=fgets($fichero,512);
    }
echo 
"<textarea cols='80' rows='30'>";
echo 
$string;
echo 
"</textarea>";
    }else{
        echo 
"No se ha podido habrir el fichero";    
    }
}
?>
__________________
SymbianForever
SymbianForever.com, todo sobre y para tu symbian
aNieto2K | Themes para WordPress
De todo un poco