Osea que rastre ciertas pagina y copie el contenido
tengo este codigo
Cita:
Pero como haria que rastree varias paginas automaticamente ?<?php
// Example by deerme.org
$data = file_get_contents("http://www.terra.cl/valores/");
if ( preg_match('|<td align="right" class="texto2">UF : </td>\s+<td class="texto2"><b>(.*?)</b></td>|is' , $data , $cap ) )
{
echo "UF ".$cap[1];
}
// Example by deerme.org
$data = file_get_contents("http://www.terra.cl/valores/");
if ( preg_match('|<td align="right" class="texto2">UF : </td>\s+<td class="texto2"><b>(.*?)</b></td>|is' , $data , $cap ) )
{
echo "UF ".$cap[1];
}
Tendrán algun script o idea de como se hace en php ?
Saludos