摘要: 主要代码:<?php//根据视频地址取内容$url="http://www.tudou.com/programs/view/B6q-LhN9e-0/";$txt=file_get_contents($url);//取视频IDpreg_match("/variid=(\d+)/",$txt,$match_id);preg_match("/<title>(.*?)-.*<\/title>/",$txt,$match_title);$id=$match_id[1];$title=$match_title[1];
阅读全文