使用curl模拟登录时提示The URL has moved here 如题.......我是模拟登录人人网时出现上边的该问题的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $login_url = "http://www.renren.com/PLogin.do"; $cookiefile = tempnam('../temp/','renren'); $post_fields = '[email protected]&password=xxxxxxxx&origURL=http://www.renren.com/home&domain=renren.com'; $curl=curl_init($login_url); curl_setopt($curl,CURLOPT_HEADER,0); curl_setopt($curl,CURLOPT_RETURNTRANSFER,0); curl_setopt($curl,CURLOPT_POST,1); curl_setopt($curl,CURLOPT_POSTFIELDS,$post_fields); curl_setopt($curl,CURLOPT_COOKIEJAR,$cookiefile); curl_exec($curl); curl_close($curl); 问一个关于面向对象的问题 紧急:PHP中执行多条sql报错:用于创建trigger. 请教大家个问题关于global 急:PHP读取excel时遇到问题 phpmyadmin 登录提示#1045 - Access denied for user 'ODBC'@'localhost' 两个.PHP文件如何共享变量数据? php查询数据库问题 一个简单的多层包含问题了 请教 我现在一个php递归函数,在显示递归后时,不能显示, 关于php共享内存问题 有没有完全无刷新的聊天室???
$cookiefile = tempnam('../temp/','renren');
$post_fields = '[email protected]&password=xxxxxxxx&origURL=http://www.renren.com/home&domain=renren.com'; $curl=curl_init($login_url);
curl_setopt($curl,CURLOPT_HEADER,0);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,0);
curl_setopt($curl,CURLOPT_POST,1);
curl_setopt($curl,CURLOPT_POSTFIELDS,$post_fields);
curl_setopt($curl,CURLOPT_COOKIEJAR,$cookiefile);
curl_exec($curl);
curl_close($curl);