河南高级会员
专心做事,诚信做人
posts - 14,  comments - 1,  trackbacks - 0
$cookiepath = 'cookie.txt';//cookie文件
if(file_exists($cookiepath)){
    $fp=fopen($cookiepath,"r");
    while(!(feof($fp)))
    {
        $text=fgets($fp);
        if(preg_match("/_tb_token_=(.*)(; v=0)/", $text, $matches)){
            $_tb_token_ = trim($matches[1]);
            break;
        }
    }
}

 

posted on 2014-06-16 20:40  河南高级会员  阅读(...)  评论(...编辑  收藏