Parsing vcdq dot com

tomski

Newbie
Joined
Nov 25, 2008
Messages
22
Reaction score
2
Im a noob i'm just wondering if there's a way that I can parse this url its in an array BUT how do I parse it I cant figure it out im trying to add the info to a db.

http://anonymizeit.com/?http://www.google.com/http://www.vcdq.com/lastx.php?type=2&num=10&genre=5

Any help would be great.
 
Code:
<?php

$isi = file_get_contents('http://www.vcdq.com/lastx.php?type=2&num=10&genre=5');
$foo1 = explode("Array",$isi);
$i = 0;

foreach($foo1 as $value) {
  $foo2[$i] = explode("n",$value);
  foreach($foo2[$i] as $value2) {
    if(strstr($value2,"=>")) {
      $bar = explode("=>",$value2);
        $keyt = trim($bar[0]);
        $valt = trim($bar[1]);
        $keyt = str_replace('[','',$keyt);
        $keyt = str_replace(']','',$keyt);
        $res[$i][$keyt] = $valt;
    }
  }
  $i++;
}
print_r($res); //array start from 1

?>
 
Back
Top