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($fp, 4096);
}
$buffer = str_replace('document.write(\'', '', $buffer);
$buffer = str_replace('\');', '', $buffer);
$fileFP = fopen("noticias.txt", "w+");
$NotiBuffer = '';
while(!feof($fileFP))
{
$NotiBuffer .= fgets($fileFP, 4096);
}
$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';
?>