Пример #1
0
                $this->sql($data);
            }
            //		 	exit();
        }
    }
    //-------------end儿童读物------------
    function run()
    {
        $url_c = array('http://list.dangdang.com/book/01.41.05_Z25.html', 'http://list.dangdang.com/book/01.41.41_Z25.html', 'http://list.dangdang.com/book/01.41.43_Z25.html', 'http://list.dangdang.com/book/01.41.45_Z25.html', 'http://list.dangdang.com/book/01.41.48_Z25.html', 'http://list.dangdang.com/book/01.41.59_Z40.html', 'http://list.dangdang.com/book/01.41.55_Z25.html');
        $url_ch = array('http://book.dangdang.com/children/01.41.26.htm', 'http://book.dangdang.com/children/01.41.27.htm', 'http://book.dangdang.com/children/01.41.44.htm', 'http://book.dangdang.com/children/01.41.46.htm', 'http://book.dangdang.com/children/01.41.50.htm', 'http://book.dangdang.com/children/01.41.51.htm');
        $url = array('http://book.dangdang.com/children/children.aspx?ref=book-01-A');
        // $url="http://product.dangdang.com/product.aspx?product_id=20915489&ref=book-02-M";
        // $content=$this->resolution($url);
        // @$this->data_data($content,$url);
        $t = 89;
        for ($i = 5; $i < 6; $i++) {
            $url = $url_ch[$i];
            $content = $this->resolution($url);
            $t = $this->get_url($content, $t);
        }
        echo "ok";
        // $content=$this->resolution("http://list.dangdang.com/book/01.21.20.htm");
        // @$this->data_url($content);
    }
}
ini_set('max_execution_time', '360000000*28');
$cai = new gather();
$cai->run();
?>