php 使用curl模拟登录discuz以及模拟发帖
摘要:/i', $contents, $matches);if(!empty($matches)) { $formhash = $matches[1];} else { die('Not found the forumhash.');}//POST数据,获取COOKIE,cookie文件放在网站的temp目录下$cookie_file = tempnam('./temp','cookie');$ch = curl_init($login_url);curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($
阅读全文
posted @ 2013-07-23 15:58