Como obtener un xml remoto y luego parsearlo.. hacking


$page = file_get_contents('http://www.google.com/algo.txt');
echo $page;
die();
$foo = file_get_contents(  $_GET['url']  );
$code = null;
preg_match_all("|(.*?)|is", $foo, $vector);
      foreach ($vector[0] as $id){     
               $code .= ($id)." ";  
                    
      }
$code .= "
";   

echo ( $code );
?> 


$foo =   ' '  ;

   
$code = null;
$vector = array("b");
     
preg_match_all('/(.*)?<\/TEXT>/', $foo, $vector, PREG_SET_ORDER);

 foreach ($vector as $valor =>$key) {
         $code .= $vector[$valor][2] . "
";
}  
preg_match_all('/(.*)?<\/AUDIO>/', $foo, $vector, PREG_SET_ORDER);

 foreach ($vector as $valor =>$key) {
         $code .= $vector[$valor][2] . "
";
}
$code .= "
";   
echo ( $code );
?> 


ahora a tomar datos wuajaja :)

0 pensamientos:

Post a Comment

feedback!