Tema: Datos php
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/10/2010, 11:00
rai0d
 
Fecha de Ingreso: noviembre-2005
Mensajes: 43
Antigüedad: 18 años, 5 meses
Puntos: 2
Datos php

Hola tengo el siguiente script en el cual obtengo toda una serie de datos correctamente
$original_file = file_get_contents("http://url);
$stripped_file = strip_tags($original_file, "<a>");
preg_match_all("/<a(?:[^>]*)href=\"([^\"]*)\"(?:[^>]*)>(?:[^<]*)<\/a>/is", $stripped_file, $matches);

//DEBUGGING

//$matches[0] now contains the complete A tags; ex: <a href="link">text</a>
//$matches[1] now contains only the HREFs in the A tags; ex: link

header("Content-type: text/plain"); //Set the content type to plain text so the print below is easy to read!
print_r($matches); //View the array to see if it worked


Mi idea es de crear una tabla mostrando los links, pero no encuentro la forma que lo realize automaticamente