Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/12/2003, 23:11
Avatar de sdf23
sdf23
 
Fecha de Ingreso: diciembre-2002
Mensajes: 297
Antigüedad: 21 años, 4 meses
Puntos: 0
Haber mira se me ocurrio este, esta muy cutre, y se puede mejorar mucho, pero ps, no ando en mi casa y notepad, no es muy bueno en cuanto a colorear :P ahi va
Código PHP:
<?php
$url 
'http://www.conocimientosweb.net/portal/modules.php?name=Notiweb&file=index&ac=title&ac2=5&ac3=10';

if(
$fp fopen($url"rb"))
{
    
$buffer '';
    while(!
feof($fp))
    {
        
$buffer .= fgets($fp4096);
        
    }
    
$buffer str_replace('document.write(\''''$buffer);
    
$buffer str_replace('\');'''$buffer);
    
    
$fileFP fopen("noticias.txt""w+");
    
$NotiBuffer '';
    while(!
feof($fileFP))
    {
        
$NotiBuffer .= fgets($fileFP4096);
        
    }
    
$NotiBuffer str_replace('document.write(\''''$NotiBuffer);
    
$NotiBuffer str_replace('\');'''$NotiBuffer);
    
    if(
$NotiBuffer != $buffer)
    {
        echo 
'Si hubo Modificaciones';
        
fwrite($fileFP$buffer);
    }
    
fclose($fp);
    
fclose($fileFP);
}
else
    echo 
'No se pudo abrir el archivo';


?>
__________________

la vida es bella cuando no es culera