Php simulates logon to the QQ space, uses curl to help you see where the php simulates logon to the QQ space, and uses curl to help you see what went wrong, that is, you cannot directly obtain the information on the logon page (including the personal homepage information after logon). PHPcode & lt ;? Php $ qqname; enter the account $ qqpassword here; enter the password if (! File_exists (. temp) {mkd php simulates login to the QQ space and uses the curl to help you see what went wrong
Php simulates logon to the QQ space and uses the curl to help you see what is wrong, that is, you cannot directly obtain the information on the logon page (including the personal homepage information after logon)
PHP code
(. *) <\/Li>/", $ contents, $ arr); curl_close ($ ch); $ url = 'http: // user.qzone.qq.com/'.?qqname=$ch = curl_init ($ url ); curl_setopt ($ ch, CURLOPT_HEADER, 0); curl_setopt ($ ch, batch, 1); curl_setopt ($ ch, CURLOPT_COOKIEFILE, $ cookie_file); $ contents = curl_exec ($ ch ); // preg_match ("/
(. *) <\/Li>/", $ contents, $ arr); echo $ contents; curl_close ($ ch);?>
------ Solution --------------------
Debug