Ver Mensaje Individual
  #16 (permalink)  
Antiguo 09/04/2013, 19:22
Avatar de kernelcom-com
kernelcom-com
 
Fecha de Ingreso: mayo-2008
Ubicación: Lima
Mensajes: 216
Antigüedad: 16 años
Puntos: 3
Respuesta: Obtener Link con Dom Document php

Gracias por tu respuesta, me parece interesante tu comentario, te dejo mi script y como resolví, puedo obtener todos los metas cambiando los atributos con un bucle y con una condición, igual agradezco tu tiempo.

Código PHP:
$metas $doc->getElementsByTagName('meta');
for (
$i 0$i $metas->length$i++)
{
    
$meta $metas->item($i);
    if(
$meta->getAttribute('itemprop') == 'contentURL'){
        
$videoURL $meta->getAttribute('content'); } // Video URL
        
    
if($meta->getAttribute('property') == 'og:image'){
        
$IMGURL $meta->getAttribute('content'); } // IMG URL
        

Saludos.
__________________
Las ideas estimulan la mente.(Eric Hoffer)
http://www.reycarlos.com
http://www.clasificadosde.com